scikit学习的问题:我不能使用sklearn的learning_curve。
当我这样做:import sklearn (它工作),from sklearn.cluster import bicluster (它工作),from sklearn import cross_validation (它工作).诸若此类。唯一不能工作的文件是learning_curve,即from sklearn.learning_curve import learning_curve (不工作)。
需要考虑的两种错误类型:
from sklearn import learning_curve
追溯(最近一次调用):文件"",第1行,在ImportError:无法导入名称learning_curvefrom sklearn.learning_curve import learning_curve
回溯(最近一次调用):File "",第1行,在ImportError中:没有名为learning_curve的模块有线索吗?
发布于 2020-07-14 05:00:06
科学知识学习中的learning_curve在model_selection下,所以请尝试,
from sklearn.model_selection import learning_curve 这很好用!
发布于 2021-02-16 16:57:29
# will work
from sklearn.model_selection import validation_curve
# won't work
from sklearn.learning_curve import validation_curvehttps://stackoverflow.com/questions/35778700
复制相似问题