2

在下面找到我用来从 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)

残差_plot_from_yellowbrick_package

4

0 回答 0