weight_mode: (sample | weighted_loss) (Optional)
Description
weight_mode specifies how Kumo applies training weights when either a training-table WEIGHT column is present and/or majority_sampling_ratio is configured for binary classification.
The training-table WEIGHT column can come from either:
- SDK/custom training-table workflows (see How do I assign different weights to training samples?)
-
generated weights via weight_col in
training_table_generation -
sample: samples training examples with replacement according to the effective weight distribution. -
weighted_loss: weighs training examples in the loss function according to the effective weight distribution.
majority_sampling_ratio are set for binary classification:
- In
samplemode, row and class weights are combined for sampling. - In
weighted_lossmode, row and class weights are combined in loss weighting.
Supported Task Types
- All
Default Values
Whenweight_col is configured, Kumo defaults to weighted_loss — the AutoML plan sets weight_mode: [weighted_loss] automatically, so the loss function is weighted by the column values without further AutoML search. When only majority_sampling_ratio is set for binary classification (no weight_col), AutoML does not set a default weight_mode and you must choose one explicitly.