ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
Simulation.hpp File Reference
#include "stats/Stats.hpp"
#include "stats/DataPacket.hpp"
#include "utils/Types.hpp"
#include <vector>

Go to the source code of this file.

Classes

struct  ppforest2::stats::SimulationParams
 Parameters for generating simulated classification data. More...
 
struct  ppforest2::stats::Split
 Indices for a train/test split. More...
 

Namespaces

namespace  ppforest2
 
namespace  ppforest2::stats
 Statistical infrastructure for training and evaluation.
 

Functions

DataPacket ppforest2::stats::simulate (int n, int p, int G, RNG &rng, SimulationParams const &params=SimulationParams{})
 Generate a simulated dataset with G groups, n rows, and p features.
 
Split ppforest2::stats::split (DataPacket const &data, float train_ratio, RNG &rng)
 Perform a stratified random train/test split on a DataPacket.