mcca

R package for Multi-category Classification Accuracy

https://github.com/gaoming96/mcca

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.3%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

R package for Multi-category Classification Accuracy

Basic Info
  • Host: GitHub
  • Owner: gaoming96
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 47.9 KB
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created almost 9 years ago · Last pushed over 7 years ago
Metadata Files
Readme

README.md

mcca

This is a package for Multi-category Diagnostic Accuracy.

Installation

License: GPL
v3 CRAN Version Downloads Appveyor Build status

The package is available on CRAN and can be installed directly in R using install.packages(). You may want to run install_formats() after the first installation.

R install.packages("mcca") install_formats()

The latest development version on GitHub can be installed using:

R if (!require("remotes")){ install.packages("remotes") } remotes::install_github("gaoming/mcca")

Description

It contains six common multi-category classification accuracy evaluation measures:

Hypervolume Under Manifold (HUM), described in Li and Fine (2008) doi:10.1093/biostatistics/kxm050.

Correct Classification Percentage (CCP), Integrated Discrimination Improvement (IDI), Net Reclassification Improvement (NRI), R-Squared Value (RSQ), described in Li, Jiang and Fine (2013) doi:10.1093/biostatistics/kxs047.

Polytomous Discrimination Index (PDI), described in Van Calster et al. (2012) doi:10.1007/s10654-012-9733-3. Li et al. (2018) doi:10.1177/0962280217692830.

We have published a paper to describe all the above measures and mcca package:

Li J, Gao M, D'Agostino R. Evaluating classification accuracy for modern learning approaches. Statistics in Medicine. 2019;1–27. https://doi.org/10.1002/sim.8103

Citation

Li J, Gao M, D'Agostino R. Evaluating classification accuracy for modern learning approaches. Statistics in Medicine. 2019;1–27. https://doi.org/10.1002/sim.8103

Demo

Here is a little demo.

```r

install.packages("nnet")

install.packages("rpart")

install.packages("e1071")

Basic Setup

install.packages("MASS")

install.packages("devtools")

library(devtools) install_github("gaoming96/mcca") library(mcca)

Help File

?hum

Example 1

rm(list=ls()) str(iris) data <- iris[, 1:4] label <- iris[, 5] hum(y = label, d = data, method = "multinom", k = 3)

[1] 0.9972

hum(y = label, d = data, method = "tree", k = 3)

[1] 0.998

hum(y = label, d = data, method = "mlp", k = 3)

[1] 0.9948

pdi(y = label, d = data, method = "mlp", k = 3)

[1] 0.9976

Example 2

rm(list=ls()) str(iris) data <- data.matrix(iris[, 1:4]) label <- as.numeric(iris[, 5])

multinomial

require(nnet)

model

fit <- multinom(label ~ data, maxit = 1000, MaxNWts = 2000) predict.probs <- predict(fit, type = "probs") pp<- data.frame(predict.probs)

extract the probablity assessment vector

head(pp)

X1 X2 X3

1 1.0000000 7.813676e-11 1.208325e-37

2 1.0000000 2.894707e-08 2.068738e-33

3 1.0000000 2.961086e-09 3.547252e-35

4 0.9999996 3.533713e-07 6.964265e-32

5 1.0000000 5.609367e-11 5.690705e-38

6 1.0000000 2.489396e-11 8.327501e-37

hum(y = label, d = pp, method = "prob", k = 3)

[1] 0.9972

the same result as the first example in Example 1

Example 3

rm(list=ls()) str(iris) data <- iris[, 3] label <- iris[, 5] pdi(y = label, d = data, method = "tree", k = 3)

[1] 0.9082667

pdi(y = label, d = data, method = "mlp", k = 3)

[1] 0.9845333

```

Owner

  • Login: gaoming96
  • Kind: user

GitHub Events

Total
  • Watch event: 1
  • Fork event: 1
Last Year
  • Watch event: 1
  • Fork event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 25
  • Total Committers: 2
  • Avg Commits per committer: 12.5
  • Development Distribution Score (DDS): 0.08
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
gaoming96 3****6 23
gaoming g****6@s****n 2
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 305 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 7
  • Total maintainers: 1
cran.r-project.org: mcca

Multi-Category Classification Accuracy

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 305 Last month
Rankings
Stargazers count: 26.2%
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 34.1%
Dependent repos count: 35.5%
Downloads: 50.4%
Maintainers (1)
Last synced: 12 months ago

Dependencies

DESCRIPTION cran
  • MASS * imports
  • caret * imports
  • e1071 * imports
  • nnet * imports
  • pROC * imports
  • rpart * imports
  • stats * imports