-
Notifications
You must be signed in to change notification settings - Fork 332
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
Decision Tree visualize wrong path #294
Comments
Thanks @wim50594, it helps that you created the steps to reproduce the issue. I will take a look soon, right now I'm in vacation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
If the path of a DecisionTree is to be visualized for a single instance and the feature value is exactly the split value, the right path is selected. However, with Sklearn, the decision goes left for less than or equal to. In the end, an incorrect classification is displayed due to the wrong path.
To Reproduce
Expected behavior
The left path should be chosen and thus the classification result "False" should also be displayed. In other words: If the split value is less than or equal to the split value, the left path should be selected.
Environment
Used scikit-learn version 1.2.2 (lates)
The text was updated successfully, but these errors were encountered: