powered by
Calculates the j-score between two clustering assignment.
jscore(truth, pred)
A numeric vector of truth class labels.
A numeric vector of predicted class labels.
Returns the j-score of the clustering assignment.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab