问题描述
在下面找到我用来从 Yellowbrick 包创建残差图的代码。 我运行了 xgbregressor 模型,预测了结果并尝试创建残差图。 该图正确显示,但随后出现以下错误。我没有使用 line_color 代码中任何地方的属性。
AttributeError: 'XGBRegressor' 对象没有属性 'line_color'。
如果有人能帮助我,我将不胜感激。
from yellowbrick.regressor import residuals_plot
print("\n Residuals Plot")
residuals_plot(XGBR,MBxtrain,MBytrain,MBxtest,MBytest)
residuals_plot_from_yellowbrick_package
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)