ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
Train.hpp File Reference

Model training utilities and train subcommand handler. More...

#include "cli/CLIOptions.hpp"
#include "io/Output.hpp"
#include "stats/DataPacket.hpp"
#include "stats/Stats.hpp"
#include "utils/Types.hpp"
#include "models/Model.hpp"

Go to the source code of this file.

Classes

struct  ppforest2::cli::TrainResult
 Result of a train operation containing the model and training duration. More...
 

Namespaces

namespace  CLI
 
namespace  ppforest2
 
namespace  ppforest2::cli
 Command-line interface: argument parsing, subcommands, and benchmark/evaluation orchestration.
 

Functions

void ppforest2::cli::add_model_options (CLI::App *sub, ModelParams &model)
 Add shared model options (size, lambda, threads, seed, vars) to sub.
 
ppforest2::stats::DataPacket ppforest2::cli::read_data (CLIOptions const &params, ppforest2::stats::RNG &rng)
 Load or simulate data based on CLI options.
 
int ppforest2::cli::run_train (CLIOptions &params)
 Run the train subcommand.
 
CLI::App * ppforest2::cli::setup_train (CLI::App &app, CLIOptions &params)
 Register train subcommand options on app.
 
TrainResult ppforest2::cli::train_model (ppforest2::types::FeatureMatrix const &x, ppforest2::types::ResponseVector const &y, CLIOptions const &params, ppforest2::stats::RNG &rng)
 Train a single model (Forest or Tree) on the given dataset.
 

Detailed Description

Model training utilities and train subcommand handler.

Provides shared functions used by both the train and evaluate subcommands (data loading, model training, configuration display) plus the run_train() entry point.