torch¶
PyTorch implementation of Metrics.
Note
There is no TorchSingletonCredalSet or TorchDiscreteCredalSet in
probly.representation.credal_set.torch; for those semantics, use
the numpy-side NumpySingletonCredalSet / NumpyDiscreteCredalSet
types. The remaining torch credal sets (Convex, DistanceBased,
ProbabilityIntervals, DirichletLevelSet) all use the interval-dominance
rule via their lower() / upper() envelopes.
Functions¶
Compute top-1 classification accuracy for PyTorch tensors. |
|
Compute area under a curve using the trapezoid rule. |
|
Compute average precision for PyTorch tensors. |
|
Compute the classwise expected calibration error for PyTorch tensors. |
|
Compute the confidence expected calibration error for PyTorch tensors. |
|
Compute the false negative rate for PyTorch tensors. |
|
Compute the false positive rate for PyTorch tensors. |
|
Compute precision-recall curve along the last axis. |
|
Compute area under the ROC curve for PyTorch tensors. |
|
Compute ROC curve along the last axis. |