简体   繁体   English

从 sklearn.ensemble 导入时出现导入错误?

[英]IMPORT ERROR when importing from sklearn.ensemble?

I received an import error when importing the HistGradientBooostingClassifier from sklearn.ensemble从 sklearn.ensemble 导入 HistGradientBooostingClassifier 时收到导入错误

I typed in jupyter notebook:我在 jupyter notebook 中输入:

'from sklearn.ensemble import HistGradientBoostingClassifier' '从 sklearn.ensemble 导入 HistGradientBoostingClassifier'

错误截图 . .

The first result from a (US) Google search for ImportError from sklearn.ensemble import HistGradientBoostingClassifier is this issue from the scikit-learn repo on Github. (美国)谷歌搜索ImportError from sklearn.ensemble import HistGradientBoostingClassifier的第一个结果是scikit-learn上的 scikit-learn 存储库中的这个问题

HistGradientBoostingRegressor is experimental. HistGradientBoostingRegressor 是实验性的。 You need to enable experimental features first:您需要先启用实验功能:

from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingRegressor

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入 sklearn.ensemble 时收到错误 - Receiving error when I am importing sklearn.ensemble 无法从 sklearn.ensemble 导入任何内容 - Cannot import anything from sklearn.ensemble python warnings.filterwarnings 不会忽略“import sklearn.ensemble”中的 DeprecationWarning - python warnings.filterwarnings does not ignore DeprecationWarning from 'import sklearn.ensemble' sklearn.ensemble ImportError 中的 VotingClassifier - VotingClassifier in sklearn.ensemble ImportError 检查来自 sklearn.ensemble 的模型是否已适合数据 - Check if model from sklearn.ensemble has been fitted to data 可以在sklearn.ensemble中使用不同的分类器吗? - Is it possible to use different classifiers in sklearn.ensemble? sklearn.ensemble中的python特征选择特征重要性方法在多次运行中给出不一致的结果 - python feature selection feature importance method from sklearn.ensemble gives inconsistent results in multiple runs 从 sklearn 导入 LogisticRegression 时出现导入错误 - Import error while importing LogisticRegression from sklearn 输入适用于某些sklearn模型,但不适用于sklearn.linear和sklearn.ensemble中的其他模型 - Inputs working with some sklearn models but not other models in sklearn.linear and sklearn.ensemble Pyinstaller和sklearn.ensemble:'ModuleNotFoundError:没有名为'sklearn.neighbors.quad_tree'的模块[2760]' - Pyinstaller and sklearn.ensemble: 'ModuleNotFoundError: No module named 'sklearn.neighbors.quad_tree' [2760]'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM