|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Penalized Discriminant Analysis projection pursuit strategy. More...
#include <PDA.hpp>
Public Member Functions | |
| PDA (float lambda) | |
| std::string | display_name () const override |
| Human-readable name for display in summaries. | |
| std::set< types::Mode > | supported_modes () const override |
| Training modes this strategy supports. | |
| nlohmann::json | to_json () const override |
| Serialize this strategy's configuration to JSON. | |
Public Member Functions inherited from ppforest2::pp::ProjectionPursuit | |
| 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 |
Static Public Member Functions | |
| static ProjectionPursuit::Ptr | from_json (nlohmann::json const &j) |
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. | |
Protected Member Functions | |
| void | compute (NodeContext &ctx, stats::RNG &rng) const override |
Additional Inherited Members | |
Public Types inherited from Strategy< ProjectionPursuit > | |
| using | Factory |
| Factory function type for deserializing a strategy from JSON. | |
| using | Ptr |
Penalized Discriminant Analysis projection pursuit strategy.
Optimizes a linear discriminant projection using a penalized between-group / within-group variance ratio. The lambda parameter controls the penalty strength in the LDA index.
|
explicit |
|
overrideprotectedvirtual |
Implements ppforest2::pp::ProjectionPursuit.
|
inlineoverridevirtual |
Human-readable name for display in summaries.
Implements Strategy< ProjectionPursuit >.
|
static |
|
inlineoverridevirtual |
Training modes this strategy supports.
Every concrete strategy MUST explicitly declare which modes it supports — there is no default. This forces implementers to think about mode compatibility rather than silently inheriting both modes and triggering runtime surprises.
Used by TrainingSpec to validate that every selected strategy is compatible with the configured training mode. Fails fast at build time instead of silently misbehaving at train time.
Implements Strategy< ProjectionPursuit >.
|
overridevirtual |
Serialize this strategy's configuration to JSON.
Must include a "name" field identifying the strategy type, plus any strategy-specific parameters.
Implements Strategy< ProjectionPursuit >.