Expand description
Decision trees and forests for ternary classification on {-1, 0, +1}.
Provides TernaryDecisionTree with ternary splits, RandomForest with ternary voting, feature importance, and pruning with ternary entropy.
Structs§
- Random
Forest - Random forest for ternary classification.
- Ternary
Decision Tree - Ternary decision tree.
Enums§
Functions§
- count_
labels - Count ternary labels in a slice.
- gini_
impurity - Compute Gini impurity for ternary labels.
- information_
gain - Compute information gain for a split.
- majority
- Majority vote label.
- ternary_
entropy - Compute ternary entropy.