ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::leaf Namespace Reference

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.
 

Detailed Description

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.

Function Documentation

◆ majority_vote()

LeafStrategy::Ptr ppforest2::leaf::majority_vote ( )

Factory function for majority-vote leaf strategy.

◆ mean_response()

LeafStrategy::Ptr ppforest2::leaf::mean_response ( )

Factory function for mean-response leaf strategy.