Learn R Programming

jScore (version 0.1.0)

jscore: jscore

Description

Calculates the j-score between two clustering assignment.

Usage

jscore(truth, pred)

Arguments

truth

A numeric vector of truth class labels.

pred

A numeric vector of predicted class labels.

Value

Returns the j-score of the clustering assignment.

Examples

Run this code
# 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