ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
ppforest2::cli::SimulateParams Struct Reference

Simulation data source options. More...

#include <EvaluateParams.hpp>

Public Member Functions

 SimulateParams ()=default
 
 SimulateParams (nlohmann::json const &config)
 Construct from a JSON config object.
 
void resolve_format ()
 Parse the NxPxG format string into rows, cols, n_groups.
 
stats::DataPacket simulate (types::Mode mode, stats::RNG &rng) const
 Generate a simulated dataset for the given mode.
 

Public Attributes

stats::simulation::params::Classification classification
 
int cols = 10
 
std::string format
 
int n_groups = 2
 
stats::simulation::params::Regression regression
 
int rows = 1000
 

Detailed Description

Simulation data source options.

Constructor & Destructor Documentation

◆ SimulateParams() [1/2]

ppforest2::cli::SimulateParams::SimulateParams ( )
default

◆ SimulateParams() [2/2]

ppforest2::cli::SimulateParams::SimulateParams ( nlohmann::json const & config)
explicit

Construct from a JSON config object.

Member Function Documentation

◆ resolve_format()

void ppforest2::cli::SimulateParams::resolve_format ( )

Parse the NxPxG format string into rows, cols, n_groups.

◆ simulate()

stats::DataPacket ppforest2::cli::SimulateParams::simulate ( types::Mode mode,
stats::RNG & rng ) const

Generate a simulated dataset for the given mode.

Dispatches to the classification (group-shifted normals) or regression (linear model) generator based on mode. Any failure surfaces as a UserError — simulation parameters come from the user, not from a programmer-controlled invariant.

Member Data Documentation

◆ classification

stats::simulation::params::Classification ppforest2::cli::SimulateParams::classification

◆ cols

int ppforest2::cli::SimulateParams::cols = 10

◆ format

std::string ppforest2::cli::SimulateParams::format

◆ n_groups

int ppforest2::cli::SimulateParams::n_groups = 2

◆ regression

stats::simulation::params::Regression ppforest2::cli::SimulateParams::regression

◆ rows

int ppforest2::cli::SimulateParams::rows = 1000

The documentation for this struct was generated from the following file: