|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
Classes | |
| class | MockStop |
Mock StopRule whose verdict is fixed at construction time. More... | |
| struct | NodeContextFixture |
Test-only fixture that owns the storage backing a NodeContext. More... | |
Functions | |
| pp::Projector | as_projector (std::vector< types::Feature > v) |
Build a Projector from a std::vector<Feature> initializer. | |
| TrainingSpec::Ptr | classification_spec () |
| Default-valued classification spec. | |
| TrainingSpec::Ptr | regression_spec () |
| Minimal well-formed regression spec. | |
| inline ::testing::AssertionResult | throws_with (std::function< void()> const &fn, std::string const &needle) |
gtest assertion: fn throws a std::runtime_error whose what() contains needle. | |
|
inline |
|
inline |
Default-valued classification spec.
|
inline |
Minimal well-formed regression spec.
Picks regression-compatible strategies (ByCutpoint, MeanResponse, MinSize) since the classification defaults (e.g., PureNode) reject regression mode at validation time.
| inline ::testing::AssertionResult ppforest2::test::throws_with | ( | std::function< void()> const & | fn, |
| std::string const & | needle ) |
gtest assertion: fn throws a std::runtime_error whose what() contains needle.
Used by JSON-validation tests where the exception message carries the dotted path of the offending field (e.g. "config.pp.lambda: missing
required key"). Centralised here so JsonReader, ExportValidation, and per-strategy from_json tests share one helper.