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
Note that I have added the nrAssignments for each leaf in parenthesis, so 0 Leaf 0, (2) specifies that there is 1 leaf for m1=0, m0=0 and it has 2 assignments.
However, when I specify the following tree (where only the discrete keys are reversed in order),
where the number of assignments are incorrect. It should be 1 each so that counting gives rise to a total of 4.
The issue seems to be that DecisionTree::compose reorders the keys such that the highest key value is always at the top, but the number of assignments are not updated accordingly.
The question at hand is whether we require the key reordering when composing the tree? What would be the rationale behind this?
The text was updated successfully, but these errors were encountered:
When creating a decision tree from a vector of double values, depending on the ordering of the keys, the number of assignments can be incorrect.
For example, this
gives
which looks good.
Note that I have added the
nrAssignments
for each leaf in parenthesis, so0 Leaf 0, (2)
specifies that there is 1 leaf form1=0, m0=0
and it has 2 assignments.However, when I specify the following tree (where only the discrete keys are reversed in order),
I get
where the number of assignments are incorrect. It should be 1 each so that counting gives rise to a total of 4.
The issue seems to be that
DecisionTree::compose
reorders the keys such that the highest key value is always at the top, but the number of assignments are not updated accordingly.The question at hand is whether we require the key reordering when composing the tree? What would be the rationale behind this?
The text was updated successfully, but these errors were encountered: