【发布时间】:2022-02-27 06:35:05
【问题描述】:
当我运行这段代码时:
from yellowbrick.classifier import ROCAUC
from sklearn.ensemble import RandomForestClassifier
rf = RandomForestClassifier(**{"max_features": 0.4, "n_estimators":15,"min_samples_leaf": 0.1,"random_state":42})
rf.fit(X_train, y_train)
roc_viz = ROCAUC(rf)
roc_viz.score(X_test, y_test)
我有这个错误
“RandomForestClassifier”对象没有属性“target_type_”
有人有想法吗?谢谢
当我调试时,按照指令
roc_viz = ROCAUC(rf)
我得到错误:
无法获得
【问题讨论】: