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

Split rule strategies for computing decision thresholds. More...

Classes

struct  SRMeanOfMeansStrategy
 Split threshold as the mean of two group means. More...
 
struct  SRStrategy
 Abstract strategy for computing the split threshold. More...
 

Functions

SRStrategy::Ptr mean_of_means ()
 Factory function for a mean-of-means split strategy.
 

Detailed Description

Split rule strategies for computing decision thresholds.

Contains the abstract SRStrategy interface and concrete implementations that determine the split threshold in projected space. The built-in SRMeanOfMeansStrategy uses the midpoint of the two group means.

New strategies must implement the pure virtual methods including to_json() for serialization support.

Function Documentation

◆ mean_of_means()

SRStrategy::Ptr ppforest2::sr::mean_of_means ( )

Factory function for a mean-of-means split strategy.