Skip to content

npcs

Neyman-Pearson Classification via Cost-Sensitive Learning

v0.1.1 · Apr 27, 2023 · GPL-2

Description

We connect the multi-class Neyman-Pearson classification (NP) problem to the cost-sensitive learning (CS) problem, and propose two algorithms (NPMC-CX and NPMC-ER) to solve the multi-class NP problem through cost-sensitive learning tools. Under certain conditions, the two algorithms are shown to satisfy multi-class NP properties. More details are available in the paper "Neyman-Pearson Multi-class Classification via Cost-sensitive Learning" (Ye Tian and Yang Feng, 2021).

Downloads

CRAN

247

Last 30 days

17238th

612

Last 90 days

2.3K

Last year

Trend: +72.7% (30d vs prior 30d)

r2u

10

Last 30 days

24

Last 90 days

96

Last year

Trend: -28.6% (30d vs prior 30d)

r2u: no daily series yet

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘caret’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'npcs-demo.Rmd' using rmarkdown
! Package pdftex.def Error: File `a823f735f7bab93eb94e4a819fc6cea66de84c9d.pdf'
 not found: using draft setting.

Error: processing vignette 'npcs-demo.Rmd' failed wit
...[truncated]...
https://yihui.org/tinytex/r/#debugging for debugging tips. See npcs-demo.log for more info.
--- failed re-building 'npcs-demo.Rmd'

SUMMARY: processing the following file failed:
  'npcs-demo.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dfoptim magrittr smotefamily foreach caret formatR dplyr forcats ggplot2 tidyr nnet npcs

Version History

3 tracked
new 0.1.1 Mar 10, 2026
updated 0.1.1 ← 0.1.0 diff Apr 26, 2023
new 0.1.0 Oct 18, 2021