jscore {jScore} | R Documentation |
Calculates the j-score between two clustering assignment.
jscore(truth, pred)
truth |
A numeric vector of truth class labels. |
pred |
A numeric vector of predicted class labels. |
Returns the j-score of the clustering assignment.
truth=c(1,1,1,1,1,2,2,2,2,2,3,3,3,3,3)
pred= c(1,1,1,2,2,2,3,3,3,4,4,4,5,5,5)
jscore(truth, pred)