Jaccard Index | R Documentation |
This function returns the Jaccard index for binary ids.
Jaccard.Index(x, y)
x |
true binary ids, 0 or 1. |
y |
predicted binary ids, 0 or 1. |
All ids, x
and y
, should be either 0 (not active) or 1 (active).
Any value other than 1 will be converted to 0.
Return the value of Jaccard index.
Wei-Chen Chen wccsnow@gmail.com and Ranjan Maitra.
https://www.stat.iastate.edu/people/ranjan-maitra
library(EMCluster, quietly = TRUE)
x.id <- c(1, 1, 1, 0, 0, 0, 3, 3, 3)
y.id <- c(0, 1, 0, 1, 1, 1, 0, 1, 1)
Jaccard.Index(x.id, y.id)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.