
























报错:ModuleNotFoundError: No module named 'yellowbrick.features.importances'
改为:
from yellowbrick.features import FeatureImportances
from sklearn.ensemble import GradientBoostingClassifier from yellowbrick.features import FeatureImportances # Create a new matplotlib figure fig = plt.figure() ax = fig.add_subplot() viz = FeatureImportances(GradientBoostingClassifier(), ax=ax) viz.fit(X, y) viz.poof()https://www.scikit-yb.org/zh/latest/api/features/importances.html
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。