ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::pp::ProjectionPursuit Class Referenceabstract

Abstract strategy for projection pursuit optimization. More...

#include <ProjectionPursuit.hpp>

Classes

struct  Result
 Result of a projection pursuit optimization step. More...
 

Public Member Functions

void optimize (NodeContext &ctx, stats::RNG &rng) const
 Find the optimal projection and store it in the context.
 
- Public Member Functions inherited from Strategy< ProjectionPursuit >
virtual ~Strategy ()=default
 
virtual std::string display_name () const=0
 Human-readable name for display in summaries.
 
virtual std::set< ppforest2::types::Modesupported_modes () const=0
 Training modes this strategy supports.
 
virtual nlohmann::json to_json () const=0
 Serialize this strategy's configuration to JSON.
 

Protected Member Functions

virtual void compute (NodeContext &ctx, stats::RNG &rng) const =0
 

Additional Inherited Members

- Public Types inherited from Strategy< ProjectionPursuit >
using Factory
 Factory function type for deserializing a strategy from JSON.
 
using Ptr
 
- Static Public Member Functions inherited from Strategy< ProjectionPursuit >
static Ptr from_json (nlohmann::json const &j)
 Construct a strategy from its JSON representation.
 
static bool register_strategy (std::string const &name, Factory factory)
 Register a concrete strategy for JSON deserialization.
 

Detailed Description

Abstract strategy for projection pursuit optimization.

Writes ctx.projector and ctx.pp_index_value.

Member Function Documentation

◆ compute()

virtual void ppforest2::pp::ProjectionPursuit::compute ( NodeContext & ctx,
stats::RNG & rng ) const
protectedpure virtual

Implemented in ppforest2::pp::PDA.

◆ optimize()

void ppforest2::pp::ProjectionPursuit::optimize ( NodeContext & ctx,
stats::RNG & rng ) const

Find the optimal projection and store it in the context.


The documentation for this class was generated from the following file: