brier_loss_multi
Calculates the multiclass Brier score.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
y
|
ndarray
|
True labels for the validation data. |
required |
probs
|
ndarray
|
Probability predictions for each class. For binary classification, this is the probability for the positive class. For multiclass, it is a 2D array with probabilities. |
required |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The calculated multiclass Brier score. |
Source code in periomod/training/_metrics.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|