weight_mode: (sample (default) | 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
| Run Mode | Default Value |
|---|---|
| FAST | sample |
| NORMAL | sample |
| BEST | sample |