kd.metrics#
Metrics.
Symbols#
Class#
Classification Accuracy. |
|
Adjusted Rand Index (ARI) computed from predictions and labels. |
|
Flexible base class for conveniently defining custom states. |
|
Computes the average of a scalar or a batch of tensors. |
|
Classification Accuracy for Binary classification tasks. |
|
Get the first outputs (possibly) across multiple steps (no reducing). |
|
Accumulate outputs across multiple steps (without reducing). |
|
Empty state. |
|
VGG LPIPS. |
|
Base class for metrics. |
|
Metric that does nothing. Can be used in sweeps to remove a metric. |
|
Wraps jnp.linalg.norm to compute the average norm for given tensors. |
|
Precision@1 for multilabel classification. |
|
PSNR. |
|
Area Under the Receiver Operating Characteristic Curve (ROC AUC). |
|
Returns a single chosen dimension of the tensor. |
|
Skip this metric if any of the keys are missing. |
|
Structural similarity (SSIM). |
|
Base metric state class. |
|
Compute the standard deviation for float values. |
|
Maps an inner metric to a pytree and returns a pytree of results. |
|
Applies a metric to a pytree and returns the aggregated result. |
Function#
Defines a AutoState data-field that is merged by concatenation. |
|
Define an AutoState static field. |
|
Define an AutoState data-field that is merged by summation (a + b). |
|
Defines a AutoState data-field that is merged by truncation. |