jscore: jscore

Description Usage Arguments Value Examples

View source: R/jscore.R

Description

Calculates the j-score between two clustering assignment.

Usage

1
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

1
2
3
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)

jScore documentation built on Sept. 17, 2021, 9:07 a.m.