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::simulation::params::Classification
 Classification simulation: group-shifted normals. More...
 
struct  ppforest2::stats::simulation::params::Regression
 Regression simulation: linear model over i.i.d. features. More...
 
struct  ppforest2::stats::Split
 Indices for a train/test split. More...
 

Namespaces

namespace  ppforest2
 Binarization strategies for multiclass-to-binary reduction.
 
namespace  ppforest2::stats
 Statistical infrastructure for training and evaluation.
 
namespace  ppforest2::stats::simulation
 
namespace  ppforest2::stats::simulation::params
 

Functions

DataPacket ppforest2::stats::simulate (int n, int p, int G, RNG &rng, simulation::params::Classification const &params={})
 Generate a simulated classification dataset.
 
DataPacket ppforest2::stats::simulate (int n, int p, RNG &rng, simulation::params::Regression const &params={})
 Generate a simulated regression dataset.
 
Split ppforest2::stats::split (DataPacket const &data, float train_ratio, RNG &rng)
 Perform a stratified random train/test split on a DataPacket.