You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the the 1.4.2 docs the Understanding the decision tree structure page provides code and output in order to inspect tree_.value, but the tree diagram and output from the code snippet are inconsistent.
The diagram shows integer values that represent the number of records in that class at each node.
The new output from the code appears to be the percentage? of the total number of records that are in the respective class.
The 1.3.2 docs were consistent on this page between the code output and the diagram lower describing the values array, so I expect that something changed between the versions but wasn't documented, at least here in this example.
I can't find where this change to tree_.value is documented and it appears to be causing confusion (see for example on stack overflow)
Suggest a potential alternative/fix
I would suggest updating the visual and documenting more clearly what to expect from tree_.value for DecisionTreeClassifier in 1.4.2 since it is evidently different compared to 1.3.2.
I am working with some code that inspects the trees and would appreciate insight to make sure that I make the necessary adjustments to get the same values that I did with 1.3.2.
The text was updated successfully, but these errors were encountered:
Hi there! I'm new to open source, but I'm eager to dive in and help out. I came across this issue and I think I can tackle it. Could you point me in the right direction to get started?"
Describe the issue linked to the documentation
In the the 1.4.2 docs the Understanding the decision tree structure page provides code and output in order to inspect
tree_.value
, but the tree diagram and output from the code snippet are inconsistent.The diagram shows integer values that represent the number of records in that class at each node.
The new output from the code appears to be the percentage? of the total number of records that are in the respective class.
The 1.3.2 docs were consistent on this page between the code output and the diagram lower describing the values array, so I expect that something changed between the versions but wasn't documented, at least here in this example.
I can't find where this change to
tree_.value
is documented and it appears to be causing confusion (see for example on stack overflow)Suggest a potential alternative/fix
I would suggest updating the visual and documenting more clearly what to expect from
tree_.value
forDecisionTreeClassifier
in 1.4.2 since it is evidently different compared to 1.3.2.I am working with some code that inspects the trees and would appreciate insight to make sure that I make the necessary adjustments to get the same values that I did with 1.3.2.
The text was updated successfully, but these errors were encountered: