MLCore::BalancingConfig
MLCore::BalancingConfig
Configuration for class balancing.
#include <ClassBalancing.hpp>
Public Attributes
| Name | |
|---|---|
| BalancingStrategy | strategy |
| double | max_ratio Target ratio relative to the reference class count. |
| std::optional< std::size_t > | random_seed Optional random seed for reproducible results. |
Public Attributes Documentation
variable strategy
BalancingStrategy strategy = BalancingStrategy::Subsample;variable max_ratio
double max_ratio = 1.0;Target ratio relative to the reference class count.
For Subsample: each class is capped at min_class_count × max_ratio. For Oversample: each class is raised to max_class_count (ratio unused). Must be >= 1.0.
variable random_seed
std::optional< std::size_t > random_seed;Optional random seed for reproducible results.
When nullopt, std::random_device is used for non-deterministic shuffling.
Updated on 2026-11-13 at 20:25:42 +0000