• Docs >
  • ignite.contrib.metrics
Shortcuts

ignite.contrib.metrics#

Contrib module metrics#

AveragePrecision

Computes Average Precision accumulating predictions and the ground-truth during an epoch and applying sklearn.metrics.average_precision_score .

CohenKappa

Compute different types of Cohen's Kappa: Non-Wieghted, Linear, Quadratic.

GpuInfo

Provides GPU information: a) used memory percentage, b) gpu utilization percentage values as Metric on each iterations.

PrecisionRecallCurve

Compute precision-recall pairs for different probability thresholds for binary classification task by accumulating predictions and the ground-truth during an epoch and applying sklearn.metrics.precision_recall_curve .

ROC_AUC

Computes Area Under the Receiver Operating Characteristic Curve (ROC AUC) accumulating predictions and the ground-truth during an epoch and applying sklearn.metrics.roc_auc_score .

RocCurve

Compute Receiver operating characteristic (ROC) for binary classification task by accumulating predictions and the ground-truth during an epoch and applying sklearn.metrics.roc_curve .

Regression metrics#

Module ignite.contrib.metrics.regression provides implementations of metrics useful for regression tasks. Definitions of metrics are based on Botchkarev 2018, page 30 “Appendix 2. Metrics mathematical definitions”.

Complete list of metrics:

CanberraMetric

Calculates the Canberra Metric.

FractionalAbsoluteError

Calculates the Fractional Absolute Error.

FractionalBias

Calculates the Fractional Bias.

GeometricMeanAbsoluteError

Calculates the Geometric Mean Absolute Error.

GeometricMeanRelativeAbsoluteError

Calculates the Geometric Mean Relative Absolute Error.

ManhattanDistance

Calculates the Manhattan Distance.

MaximumAbsoluteError

Calculates the Maximum Absolute Error.

MeanAbsoluteRelativeError

Calculate Mean Absolute Relative Error.

MeanError

Calculates the Mean Error.

MeanNormalizedBias

Calculates the Mean Normalized Bias.

MedianAbsoluteError

Calculates the Median Absolute Error.

MedianAbsolutePercentageError

Calculates the Median Absolute Percentage Error.

MedianRelativeAbsoluteError

Calculates the Median Relative Absolute Error.

R2Score

Calculates the R-Squared, the coefficient of determination.

WaveHedgesDistance

Calculates the Wave Hedges Distance.