NLL
Loss variant computing the negative log-likelihood for
multiclass classification. By default it treats the model output as logits (and is
then equivalent to cross entropy); set from_logits to false when the model
already emits log-probabilities. Compatible with the multiclass policy.
Configuration
Selected as name: nll.
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 |
|
|
Whether the model output is logits ( |
bool |
|
components:
loss:
name: nll
kwargs:
from_logits: false