majority_sampling_ratio: <list[float]> (Optional)
Description
A list of majority sampling ratios for AutoML to explore. Themajority_sampling_ratio parameter controls undersampling of the majority class in binary classification tasks.It specifies how many majority-class examples to keep per minority-class example during training.
In other words:
For every example in the minority class, we samplemajority_sampling_ratio examples from the majority class.This parameter must be greater than 0.
Behavior
- If the dataset’s actual majority-to-minority ratio is greater than the specified
majority_sampling_ratio, undersampling is applied to reduce the imbalance. - If the dataset’s actual ratio is less than or equal to the specified ratio, the parameter has no effect (i.e., all data are used).
weight_mode:
weight_mode=sample: row and class weights are combined for sampling.weight_mode=weighted_loss: row and class weights are combined for loss weighting.weight_mode=None: invalid whenmajority_sampling_ratiois set.
- Majority-class examples: 10,000
- Minority-class examples: 100
→ Actual ratio = 100:1
Resulting sampled data:
- Majority-class examples kept: 100 × 20 = 2,000
- Minority-class examples: 100
→ Resulting ratio = 20:1
Since the dataset is already less imbalanced than the target, no undersampling occurs.
All majority examples are kept, and this setting is ignored. Summary table
Supported Task Types
- Binary Classification