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

Classes

class  CompositeStop
 Composite stop rule that fires when any child rule fires (logical OR). More...
 
class  MaxDepth
 Stop when the node's depth reaches a configured maximum. More...
 
class  MinSize
 Stop when the node has fewer than a minimum number of observations. More...
 
class  MinVariance
 Stop when the response variance is below a threshold. More...
 
class  PureNode
 Stop when the node contains only one group (pure node). More...
 
class  StopRule
 Abstract strategy for tree stopping rules. More...
 

Functions

StopRule::Ptr any (std::vector< StopRule::Ptr > rules)
 Factory function for composite stop rule (logical OR).
 
StopRule::Ptr max_depth (int n)
 Factory function for max-depth stop rule.
 
StopRule::Ptr min_size (int n)
 Factory function for minimum-size stop rule.
 
StopRule::Ptr min_variance (types::Feature threshold)
 Factory function for minimum-variance stop rule.
 
StopRule::Ptr pure_node ()
 Factory function for pure-node stop rule.
 

Function Documentation

◆ any()

StopRule::Ptr ppforest2::stop::any ( std::vector< StopRule::Ptr > rules)

Factory function for composite stop rule (logical OR).

◆ max_depth()

StopRule::Ptr ppforest2::stop::max_depth ( int n)

Factory function for max-depth stop rule.

◆ min_size()

StopRule::Ptr ppforest2::stop::min_size ( int n)

Factory function for minimum-size stop rule.

◆ min_variance()

StopRule::Ptr ppforest2::stop::min_variance ( types::Feature threshold)

Factory function for minimum-variance stop rule.

◆ pure_node()

StopRule::Ptr ppforest2::stop::pure_node ( )

Factory function for pure-node stop rule.