residuals_plot

6 views
Skip to first unread message

Brandon Johnson

unread,
Jan 21, 2023, 12:38:17 PM1/21/23
to Yellowbrick
Getting the following error with ResidualsPlot() and residuals_plot()

YellowbrickAttributeError: neither visualizer 'ResidualsPlot' nor wrapped estimator 'LinearRegression' have attribute 'line_color'

example code:

reg2 = LinearRegression() # sklearn
residuals_plot(estimator=reg2, X_train=X, y_train=y1)

or

residual_vis = ResidualsPlot(estimator=reg2)
residual_vis.fit(X=X,y=y1)

Benjamin Bengfort

unread,
Feb 25, 2023, 1:22:06 PM2/25/23
to Yellowbrick
Hello and thank you for your interest in Yellowbrick. 

What version are you using? We did fix a similar problem with a different model in the v1.5 release. If upgrading Yellowbrick doesn't work, please let us know your OS version, Python version, matplotlib and scikit-learn version. And we can look into it. It would also be helpful if you could reproduce the issue with a yellowbrick data set so we could debug.

Best Regards,
Benjamin Bengfort

Reply all
Reply to author
Forward
0 new messages