-
-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC Adds note regarding plot partial dependence with the same axes #15599
DOC Adds note regarding plot partial dependence with the same axes #15599
Conversation
Test failing
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a nitpicks, LGTM
>>> from sklearn.linear_model import LinearRegression | ||
>>> X, y = make_friedman1() | ||
>>> est = LinearRegression().fit(X, y) | ||
>>> disp1 = plot_partial_dependence(est, X) #doctest: +SKIP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>>> disp1 = plot_partial_dependence(est, X) #doctest: +SKIP | |
>>> disp1 = plot_partial_dependence(est, X) # doctest: +SKIP |
>>> est = LinearRegression().fit(X, y) | ||
>>> disp1 = plot_partial_dependence(est, X) #doctest: +SKIP | ||
>>> disp2 = plot_partial_dependence(est, X, | ||
... ax=disp1.axes_) #doctest: +SKIP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... ax=disp1.axes_) #doctest: +SKIP | |
... ax=disp1.axes_) # doctest: +SKIP |
@thomasjpfan Thanks |
Reference Issues/PRs
Addresses #15581
What does this implement/fix? Explain your changes.
Adds note regarding using
plot_partial_dependence
with the same axesAny other comments?