Skip to content
EvalSuite
Documentation menu

Classification

Jaccard index

Implementedclassification.jaccard

Definition

Size of the intersection over the size of the union of predicted and true positives.

Formula

TP / (TP + FP + FN)

Range: [0, 1]

Inputs and outputs

  • y_true: array of class labels
  • y_pred: array of predicted labels

Returns: MetricResult

Assumptions

No assumptions beyond valid, aligned inputs of the documented types.

Limitations

No metric-specific limitations are documented yet. Interpret the value alongside the task, data, and other metrics.

Python API

PythonSince v0.1.0
import evalsuite as es

es.jaccard(y_true, y_pred)

References

  1. Jaccard P. The distribution of the flora in the alpine zone. New Phytologist. 1912;11(2):37-50.

Implementation status