Skip to content
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

Little Error in official document #34

Closed
wikke opened this issue Jun 4, 2017 · 3 comments
Closed

Little Error in official document #34

wikke opened this issue Jun 4, 2017 · 3 comments

Comments

@wikke
Copy link
Contributor

wikke commented Jun 4, 2017

http://scikit-plot.readthedocs.io/en/stable/apidocs.html#classifier-plots

in plot_confusion_matrix paragraph, the code is

 rf = classifier_factory(RandomForestClassifier())
 rf.plot_learning_curve(X, y, normalize=True)
<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>
plt.show()

it should be

 rf = classifier_factory(RandomForestClassifier())
 rf.**plot_confusion_matrix**(X, y, normalize=True)
<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>
plt.show()
@reiinakano
Copy link
Owner

Good catch! If you'd like to submit a PR to fix it yourself, the relevant line is in https://github.com/reiinakano/scikit-plot/blob/master/scikitplot/classifiers.py#L124

If not, then I'll get to it in a day or two. :) Thanks for catching this!

@wikke
Copy link
Contributor Author

wikke commented Jun 7, 2017

Notice your reply late. It's my pleasure to pull request, already pull.

@reiinakano
Copy link
Owner

Fixed in #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants