jax¶
JAX implementation of Metrics.
Note
There is no JaxSingletonCredalSet or JaxDiscreteCredalSet in
probly.representation.credal_set.jax; for those semantics, use the
numpy-side NumpySingletonCredalSet / NumpyDiscreteCredalSet types.
The remaining jax credal sets (Convex, DistanceBased, ProbabilityIntervals,
DirichletLevelSet) all use the interval-dominance rule via their
lower() / upper() envelopes.
Functions¶
Score categorical log probabilities directly, preserving extreme logits. |
|
Compute the classwise expected calibration error for JAX arrays. |
|
Compute the confidence expected calibration error for JAX arrays. |
|
Compute log loss without logging zero probabilities of classes with no target mass. |
|
Compute the log probabilities of a JAX array. |
|
One-hot encode the first maximum of each probability vector of a JAX array. |
|
Compute precision-recall curve along the last axis. |
|
Return a JAX array of probabilities unchanged. |
|
Score normalized categorical probabilities with target-aware logarithms. |
|
Compute ROC curve along the last axis. |