jscore {jScore}R Documentation

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

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)

[Package jScore version 0.1.0 Index]