CLI argument parsing, validation, and configuration for ppforest2.
std::shared_ptr< Model > Ptr
Definition Model.hpp:31
Definition Benchmark.hpp:21
Command-line interface: argument parsing, subcommands, and benchmark/evaluation orchestration.
Definition Benchmark.hpp:25
void setup_train(CLI::App &app, Params ¶ms)
Register train subcommand options on app.
int run_train(Params ¶ms)
Run the train subcommand.
void add_model_options(CLI::App *sub, ModelParams &model)
Add shared model options (size, lambda, threads, seed, vars) to sub.
TrainResult train_model(ppforest2::types::FeatureMatrix const &x, ppforest2::types::OutcomeVector const &y, Params const ¶ms)
Train a single model (Forest or Tree) on the given dataset.
Eigen::Matrix< Feature, Eigen::Dynamic, Eigen::Dynamic > FeatureMatrix
Dynamic-size matrix of feature values.
Definition Types.hpp:33
Eigen::Matrix< Outcome, Eigen::Dynamic, 1 > OutcomeVector
Dynamic-size column vector of predictions.
Definition Types.hpp:42
Model training parameters shared by train and evaluate.
Definition ModelParams.hpp:14
All CLI options and runtime parameters.
Definition CLIOptions.hpp:33
Result of a train operation containing the model and training duration.
Definition Train.hpp:27
long long duration
Definition Train.hpp:29
ppforest2::Model::Ptr model
Definition Train.hpp:28