Package: HNPclassifier 0.1.0
HNPclassifier: Hierarchical Neyman-Pearson Classification for Ordered Classes
The Hierarchical Neyman-Pearson (H-NP) classification framework extends the Neyman-Pearson classification paradigm to multi-class settings where classes have a natural priority ordering. This is particularly useful for classification in unbalanced dataset, for example, disease severity classification, where under-classification errors (misclassifying patients into less severe categories) are more consequential than other misclassifications. The package implements H-NP umbrella algorithms that controls under-classification errors under user specified control levels with high probability. It supports the creation of H-NP classifiers using scoring functions based on built-in classification methods (including logistic regression, support vector machines, and random forests), as well as user-trained scoring functions. For theoretical details, please refer to Lijia Wang, Y. X. Rachel Wang, Jingyi Jessica Li & Xin Tong (2024) <doi:10.1080/01621459.2023.2270657>.
Authors:
HNPclassifier_0.1.0.tar.gz
HNPclassifier_0.1.0.zip(r-4.7)HNPclassifier_0.1.0.zip(r-4.6)HNPclassifier_0.1.0.zip(r-4.5)
HNPclassifier_0.1.0.tgz(r-4.6-any)HNPclassifier_0.1.0.tgz(r-4.5-any)
HNPclassifier_0.1.0.tar.gz(r-4.7-any)HNPclassifier_0.1.0.tar.gz(r-4.6-any)
HNPclassifier_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
HNPclassifier/json (API)
| # Install 'HNPclassifier' in R: |
| install.packages('HNPclassifier', repos = c('https://wobushics.r-universe.dev', 'https://cloud.r-project.org')) |
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:9896931035. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 111 | ||
| source / vignettes | OK | 162 | ||
| linux-release-x86_64 | OK | 107 | ||
| macos-release-arm64 | OK | 158 | ||
| macos-oldrel-arm64 | OK | 176 | ||
| windows-devel | OK | 84 | ||
| windows-release | OK | 79 | ||
| windows-oldrel | OK | 88 | ||
| wasm-release | OK | 88 |
Exports:base_functionhnp_box_plothnp_delta_searchhnp_map_classeshnp_summaryhnp_umbrellahnp_umbrella_flexhnp_upper_boundprobability_to_score_1probability_to_score_2
Dependencies:classclidplyre1071genericsgluelifecyclemagrittrMASSnnetpillarpkgconfigproxyR6randomForestrlangtibbletidyselectutf8vctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Base Classifier Training function Train a base multi-class model (RF / SVM / Multinomial Logistic) | base_function |
| HNP Box Plot Experiment | hnp_box_plot |
| Delta search | hnp_delta_search |
| Classes Mapping function for HNP Algorithm Map class labels to canonical levels "1", "2", "3" | hnp_map_classes |
| hnp_summary Summarize a ternary classifier's performance | hnp_summary |
| HNP Umbrella Algorithm | hnp_umbrella |
| HNP Umbrella (flex): use custom score functions and pre-split data | hnp_umbrella_flex |
| Upper Bound of the ith Threshold (Optimal ith Threshold) | hnp_upper_bound |
| T1 Calculation Create T1 scoring function from a fitted model | probability_to_score_1 |
| T2 Calculation Create T2 scoring function as ratio P(class 2)/P(class 3) | probability_to_score_2 |
