|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Penalized Discriminant Analysis projection pursuit strategy. More...
#include <PPPDAStrategy.hpp>
Public Member Functions | |
| PPPDAStrategy (float lambda) | |
| std::string | display_name () const override |
| Human-readable name for display in summaries. | |
| types::Feature | index (types::FeatureMatrix const &x, stats::GroupPartition const &group_spec, Projector const &projector) const override |
| Evaluate the projection pursuit index for a given projector. | |
| PPResult | optimize (types::FeatureMatrix const &x, stats::GroupPartition const &group_spec) const override |
| Find the optimal projection for the data. | |
| void | to_json (nlohmann::json &j) const override |
| Serialize this strategy's configuration to JSON. | |
Public Member Functions inherited from ppforest2::pp::PPStrategy | |
| Projector | operator() (types::FeatureMatrix const &x, stats::GroupPartition const &group_spec) const |
| Convenience operator: optimize and return the projector only. | |
Public Member Functions inherited from Strategy< PPStrategy > | |
| virtual | ~Strategy ()=default |
Static Public Member Functions | |
| static PPStrategy::Ptr | from_json (nlohmann::json const &j) |
Static Public Member Functions inherited from Strategy< PPStrategy > | |
| 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< PPStrategy > | |
| 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 |
|
inlineoverridevirtual |
Human-readable name for display in summaries.
Implements Strategy< PPStrategy >.
|
static |
|
overridevirtual |
Evaluate the projection pursuit index for a given projector.
| x | Feature matrix (n × p). |
| group_spec | Group partition. |
| projector | Projection vector (p). |
Implements ppforest2::pp::PPStrategy.
|
overridevirtual |
Find the optimal projection for the data.
| x | Feature matrix (n × p). |
| group_spec | Group partition. |
Implements ppforest2::pp::PPStrategy.
|
overridevirtual |
Serialize this strategy's configuration to JSON.
Must include a "name" field identifying the strategy type, plus any strategy-specific parameters.
| j | JSON object to populate. |
Implements Strategy< PPStrategy >.