|
ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
|
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 |
Simulation data source options.
|
default |
|
explicit |
Construct from a JSON config object.
| void ppforest2::cli::SimulateParams::resolve_format | ( | ) |
Parse the NxPxG format string into rows, cols, n_groups.
| 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.
| stats::simulation::params::Classification ppforest2::cli::SimulateParams::classification |
| int ppforest2::cli::SimulateParams::cols = 10 |
| std::string ppforest2::cli::SimulateParams::format |
| int ppforest2::cli::SimulateParams::n_groups = 2 |
| stats::simulation::params::Regression ppforest2::cli::SimulateParams::regression |
| int ppforest2::cli::SimulateParams::rows = 1000 |