| Type: | Package |
| Title: | Calculates the j-Score Between Two Clustering Assignments |
| Version: | 0.1.0 |
| Maintainer: | Navid Ahmadinejad <navidfr@asu.edu> |
| Description: | The jscore() function in the package calculates the J-Score metric between two clustering assignments. The score is designed to address some problems with existing common metrics such as problem of matching. The details of J-score is described in Ahmadinejad and Liu. (2021) <doi:10.48550/arXiv.2109.01306>. |
| License: | MIT + file LICENSE |
| Encoding: | UTF-8 |
| RoxygenNote: | 7.1.1 |
| URL: | https://github.com/liliulab/jscore |
| Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
| VignetteBuilder: | knitr |
| Config/testthat/edition: | 3 |
| NeedsCompilation: | no |
| Packaged: | 2021-09-06 23:00:33 UTC; navid |
| Author: | Navid Ahmadinejad [cre, aut], Li Liu [aut] |
| Repository: | CRAN |
| Date/Publication: | 2021-09-17 08:00:02 UTC |
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)