10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Code to reproduce -
from sklearn.tree import DecisionTreeClassifier from sklearn.tree import export_graphviz import numpy as np dtc = DecisionTreeClassifier().fit(np.random.random_sample((20, 2)), np.zeros((20, 1))) export_graphviz(dtc, filled=True)
This is because the max_impurity and min_impurity are the same for a single node tree (colors['bounds'][0] == colors['bounds'][1]).
max_impurity
min_impurity
colors['bounds'][0]
colors['bounds'][1]
We should set the color in this case to a single value directly.
The text was updated successfully, but these errors were encountered:
Can I take this one?
Sorry, something went wrong.
I am sorry. I just now realized that this issue is a duplicate of #6352 for which there is a PR #6376 ;(
@agramfort do we close this one? (There is a PR for this issue at #6582)
closing as #6376 is merged
No branches or pull requests
Code to reproduce -
This is because the
max_impurity
andmin_impurity
are the same for a single node tree (colors['bounds'][0]
==colors['bounds'][1]
).We should set the color in this case to a single value directly.
The text was updated successfully, but these errors were encountered: