我试图运行具有5个特征和一个标签的简单随机森林模型,但是当我运行RandomForestRegressor时,我得到了一个我不理解的NotFittedError (如下)。NotFittedError767 if not all_or_any([hasattr(estimator, attr) for attr
使用.predict时出现未拟合错误,拟合期间没有错误 已尝试将dataframe转换为数组,但仍出现相同错误 输入: rfg(n_estimators=500,random_state=42).fitpv36/lib/python3.6/site-packages/sklearn/utils/validation.py", line 914, in check_is_fitted
NotFi
每当我跑步的时候- from sklearn.ensemble import RandomForestClassifier----> 7 from .forest import RandomForestClassifier
8 from .forest import RandomForestRegressorsite-packages/sklearn/ensemble/forest.py i