Classification
Jaccard index
Implemented
classification.jaccardDefinition
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
import evalsuite as es
es.jaccard(y_true, y_pred)References
- Jaccard P. The distribution of the flora in the alpine zone. New Phytologist. 1912;11(2):37-50.