ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::dr::DRNoopStrategy Struct Reference

No-op dimensionality reduction: selects all variables. More...

#include <DRNoopStrategy.hpp>

Public Member Functions

std::string display_name () const override
 Human-readable name for display in summaries.
 
DRResult select (types::FeatureMatrix const &x, stats::GroupPartition const &group_spec, stats::RNG &rng) const override
 Select a subset of variables.
 
void to_json (nlohmann::json &j) const override
 Serialize this strategy's configuration to JSON.
 
- Public Member Functions inherited from ppforest2::dr::DRStrategy
DRResult operator() (types::FeatureMatrix const &x, stats::GroupPartition const &group_spec, stats::RNG &rng) const
 Convenience operator: equivalent to select().
 
- Public Member Functions inherited from Strategy< DRStrategy >
virtual ~Strategy ()=default
 

Static Public Member Functions

static DRStrategy::Ptr from_json (nlohmann::json const &j)
 
- Static Public Member Functions inherited from Strategy< DRStrategy >
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.
 

Additional Inherited Members

- Public Types inherited from Strategy< DRStrategy >
using Factory
 Factory function type for deserializing a strategy from JSON.
 
using Ptr
 

Detailed Description

No-op dimensionality reduction: selects all variables.

Used with standard (non-random-forest) trees where all features are available to the projection pursuit step at every node.

Member Function Documentation

◆ display_name()

std::string ppforest2::dr::DRNoopStrategy::display_name ( ) const
inlineoverridevirtual

Human-readable name for display in summaries.

Implements Strategy< DRStrategy >.

◆ from_json()

static DRStrategy::Ptr ppforest2::dr::DRNoopStrategy::from_json ( nlohmann::json const & j)
static

◆ select()

DRResult ppforest2::dr::DRNoopStrategy::select ( types::FeatureMatrix const & x,
stats::GroupPartition const & group_spec,
stats::RNG & rng ) const
overridevirtual

Select a subset of variables.

Parameters
xFeature matrix (n × p).
group_specGroup partition.
rngRandom number generator.
Returns
DRResult recording which columns were selected.

Implements ppforest2::dr::DRStrategy.

◆ to_json()

void ppforest2::dr::DRNoopStrategy::to_json ( nlohmann::json & j) const
overridevirtual

Serialize this strategy's configuration to JSON.

Must include a "name" field identifying the strategy type, plus any strategy-specific parameters.

Parameters
jJSON object to populate.

Implements Strategy< DRStrategy >.


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