-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Fix merge issues for better SVR plot #12877
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
Conversation
Conflicts: examples/svm/plot_svm_regression.py
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.
Thanks
examples/svm/plot_svm_regression.py
Outdated
plt.legend() | ||
fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(15, 10), sharey=True) | ||
|
||
ax1.plot(X, y_rbf, color='m', lw=lw, label='RBF model') |
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.
Could we please make use of a loop to avoid this repeated code now that we have three separate plots?
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.
Hi @jnothman. I created a loop for the plots, committed the code, and passed testing. Please let me know if there is anything else.
plt.title('Support Vector Regression') | ||
plt.legend() | ||
|
||
svrs = [svr_rbf, svr_lin, svr_poly] |
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.
I would perhaps rather an idiom with models = [{'est': svr_rbf, 'label': 'RBF', 'color': 'm', 'ax': axes[0]}]
, but this is fine by me.
Thanks! |
thank you!! @mferrari3 @jnothman and also to @ml4713 & @vasudhathinks |
With thanks to @rishikksh20 and @ml4713
With thanks to @rishikksh20 and @ml4713
This reverts commit a517ced.
This reverts commit a517ced.
With thanks to @rishikksh20 and @ml4713
Reference Issues/PRs
This fixes #8365
This also closes #8367 and closes #12207
What does this implement/fix? Explain your changes.
This fixes the merge errors because the only failure was with the python 2.7 test and the update master no longer tests in python 2.7.
Any other comments?
cc: @reshamas
#wimlds