|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
All CLI options and runtime parameters. More...
#include <CLIOptions.hpp>
Public Member Functions | |
| Params ()=default | |
| Params (nlohmann::json const &config) | |
| Construct from a JSON config object. | |
| stats::DataPacket | read_data (stats::RNG &rng) |
Load the training data: from the --data CSV when set, or simulated from --simulate params otherwise. | |
| void | resolve () |
| Resolve intermediate representations into final form. | |
| void | resolve_defaults (unsigned int total_vars) |
| Fill in runtime defaults (seed, threads, vars, strategy configs). | |
| void | resolve_seed () |
| Generate a random seed if none was set. | |
| nlohmann::json | to_json () const |
| Serialize to a JSON config (round-trips with the JSON constructor). | |
Public Attributes | |
| BenchmarkParams | benchmark |
| std::string | data_path |
| EvaluateParams | evaluate |
| ModelParams | model |
| std::string | model_path |
| bool | no_color = false |
| bool | no_metrics = false |
| bool | no_proportions = false |
| bool | no_save = false |
| std::string | output_path |
| bool | quiet = false |
| std::string | save_path = "model.json" |
| ServeParams | serve |
| SimulateParams | simulation |
| Subcommand | subcommand = Subcommand::none |
All CLI options and runtime parameters.
Fields with -1 or empty defaults are sentinel values meaning "not set by the user" and will be resolved by init_params().
|
default |
|
explicit |
Construct from a JSON config object.
| stats::DataPacket ppforest2::cli::Params::read_data | ( | stats::RNG & | rng | ) |
Load the training data: from the --data CSV when set, or simulated from --simulate params otherwise.
Side effect: when model.mode_input is empty, infers it — from the CSV's y column shape (regression if group_names is empty) or defaults to "classification" for simulated data.
| void ppforest2::cli::Params::resolve | ( | ) |
Resolve intermediate representations into final form.
Parses strategy input strings into config JSON, resolves p_vars input, parses simulate format, and runs validation. Called after all sources (config file + CLI) have populated the fields.
| void ppforest2::cli::Params::resolve_defaults | ( | unsigned int | total_vars | ) |
Fill in runtime defaults (seed, threads, vars, strategy configs).
| total_vars | Total number of feature columns. |
| void ppforest2::cli::Params::resolve_seed | ( | ) |
Generate a random seed if none was set.
| nlohmann::json ppforest2::cli::Params::to_json | ( | ) | const |
Serialize to a JSON config (round-trips with the JSON constructor).
| BenchmarkParams ppforest2::cli::Params::benchmark |
| std::string ppforest2::cli::Params::data_path |
| EvaluateParams ppforest2::cli::Params::evaluate |
| ModelParams ppforest2::cli::Params::model |
| std::string ppforest2::cli::Params::model_path |
| bool ppforest2::cli::Params::no_color = false |
| bool ppforest2::cli::Params::no_metrics = false |
| bool ppforest2::cli::Params::no_proportions = false |
| bool ppforest2::cli::Params::no_save = false |
| std::string ppforest2::cli::Params::output_path |
| bool ppforest2::cli::Params::quiet = false |
| std::string ppforest2::cli::Params::save_path = "model.json" |
| ServeParams ppforest2::cli::Params::serve |
| SimulateParams ppforest2::cli::Params::simulation |
| Subcommand ppforest2::cli::Params::subcommand = Subcommand::none |