Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The matrix representation for the example decision tree on the Decision Tree Documentation has a minor error on Row 3, Col 2. The value here should be moved to Row 3, Col 3 as it refers to the feature index for node 3. Node 2 isn't an internal node and therefore, the value at Row 3, Col 2 should be 0.
Current:
Col 1 | Col 2 | Col 3 | Col 4 | Col 5 | |
---|---|---|---|---|---|
Row 1 | 1 | 2 | 3 | 6 | 7 |
Row 2 | 1 | 0 | 1 | 0 | 0 |
Row 3 | 3 | 5 | 0 | 0 | 0 |
Row 4 | 1 | 1 | 2 | 2 | 1 |
Row 5 | 1 | 0 | 2 | 0 | 0 |
Row 6 | 0.45 | 0 | 2 | 0 | 0 |
Row 7 | 3 |
Suggested:
Col 1 | Col 2 | Col 3 | Col 4 | Col 5 | |
---|---|---|---|---|---|
Row 1 | 1 | 2 | 3 | 6 | 7 |
Row 2 | 1 | 0 | 1 | 0 | 0 |
Row 3 | 3 | 0 | 5 | 0 | 0 |
Row 4 | 1 | 1 | 2 | 2 | 1 |
Row 5 | 1 | 0 | 2 | 0 | 0 |
Row 6 | 0.45 | 0 | 2 | 0 | 0 |
Row 7 | 3 |