Cross Entropy
Loss variant for multiclass classification. It interprets the model output as per-class logits and penalizes the negative log-probability of the correct class. Compatible with the multiclass policy.
Configuration
Selected as name: cross-entropy.
Option |
Description |
Type |
Default |
|---|---|---|---|
|
How per-sample losses are reduced. |
|
|
|
Optional per-class weights for class imbalance. |
list[float] | null |
|
|
Target value that is ignored and contributes no gradient. |
int |
|
|
Amount of label smoothing in |
float |
|
components:
loss:
name: cross-entropy
kwargs: {}