π Jaccard IndexΒΆ
- JaccardIndex metric that operates on predictions and references that are list of elements.
For each prediction, it calculates the score as Intersect(prediction,reference)/Union(prediction,reference). If multiple references exist, it takes for each predictions, the best ratio achieved by one of the references. It then aggregates the mean over all references.
Note the metric assumes the prediction and references are either a set of elements or a list of elements. If the prediction and references are strings use JaccardIndexString metrics like βmetrics.jaccard_index_wordsβ .
metrics.jaccard_index
Explanation about JaccardIndexΒΆ
Computes Jaccard similarity coefficient between prediction and reference sets.
Range: [0, 1] (higher is better) Measures overlap as intersection over union of two sets.
Reference: https://en.wikipedia.org/wiki/Jaccard_index
Read more about catalog usage here.