|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Leaf creation strategies. More...
Classes | |
| class | LeafStrategy |
| Abstract strategy for creating leaf nodes. More... | |
| class | MajorityVote |
| Leaf creation by majority vote. More... | |
| class | MeanResponse |
| Leaf creation by mean response value. More... | |
Functions | |
| LeafStrategy::Ptr | majority_vote () |
| Factory function for majority-vote leaf strategy. | |
| LeafStrategy::Ptr | mean_response () |
| Factory function for mean-response leaf strategy. | |
Leaf creation strategies.
Controls what leaf node is produced when the tree stops splitting, whether triggered by the stop rule or by a degenerate condition. The default MajorityVote returns a TreeLeaf with the most frequent class. Future strategies can return probability leaves, regression leaves, etc.
| LeafStrategy::Ptr ppforest2::leaf::majority_vote | ( | ) |
Factory function for majority-vote leaf strategy.
| LeafStrategy::Ptr ppforest2::leaf::mean_response | ( | ) |
Factory function for mean-response leaf strategy.