ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
Disabled.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace ppforest2::binarize {
23 class Disabled : public Binarization {
24 public:
25 static Binarization::Ptr from_json(nlohmann::json const& j);
26
27 nlohmann::json to_json() const override;
28 std::string display_name() const override { return "Disabled"; }
29 std::set<types::Mode> supported_modes() const override {
31 }
32
34
35 protected:
40 void compute(NodeContext& ctx, stats::RNG& rng) const override;
41 };
42}
#define PPFOREST2_REGISTER_STRATEGY(StrategyBase, name)
Auto-registration macro for strategy factories.
Definition Strategy.hpp:185
std::shared_ptr< Binarization > Ptr
Definition Strategy.hpp:95
Abstract strategy for multiclass-to-binary reduction.
Definition Binarization.hpp:24
Placeholder binarizer for specs that never reach binarization.
Definition Disabled.hpp:23
std::string display_name() const override
Human-readable name for display in summaries.
Definition Disabled.hpp:28
static Binarization::Ptr from_json(nlohmann::json const &j)
void compute(NodeContext &ctx, stats::RNG &rng) const override
Always raises an invariant — Disabled should never be reached at runtime. See class-level note.
std::set< types::Mode > supported_modes() const override
Training modes this strategy supports.
Definition Disabled.hpp:29
nlohmann::json to_json() const override
Serialize this strategy's configuration to JSON.
Definition Binarization.hpp:18
Statistical infrastructure for training and evaluation.
Definition ConfusionMatrix.hpp:11
@ Classification
Definition Types.hpp:58
@ Regression
Definition Types.hpp:58
Mutable context accumulating intermediate results during node training.
Definition NodeContext.hpp:20