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
Repository
R package for Multi-category Classification Accuracy
Statistics
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
mcca
This is a package for Multi-category Diagnostic Accuracy.
Installation
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
- Repositories: 2
- Profile: https://github.com/gaoming96
GitHub Events
Total
- Watch event: 1
- Fork event: 1
Last Year
- Watch event: 1
- Fork event: 1
Committers
Last synced: almost 3 years ago
Top Committers
| Name | 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
- Homepage: https://github.com/gaoming96/mcca
- Documentation: http://cran.r-project.org/web/packages/mcca/mcca.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL]
-
Latest release: 0.7.0
published over 6 years ago
Rankings
Maintainers (1)
Dependencies
- MASS * imports
- caret * imports
- e1071 * imports
- nnet * imports
- pROC * imports
- rpart * imports
- stats * imports