{
  "_id": "6abe1d6c99f7aa8c6aa52466",
  "Package": "npcs",
  "Type": "Package",
  "Title": "Neyman-Pearson Classification via Cost-Sensitive Learning",
  "Version": "0.1.1",
  "Authors@R": "c(person(\"Ye\", \"Tian\", role = c(\"aut\"), email = \"ye.t@columbia.edu\"), person(\"Ching-Tsung\", \"Tsai\", role = c(\"aut\", \"cre\"), email = \"tctsung@nyu.edu\"), person(\"Yang\", \"Feng\", role = \"aut\", email = \"yang.feng@nyu.edu\"))",
  "Description": "We connect the multi-class Neyman-Pearson classification\n(NP) problem to the cost-sensitive learning (CS) problem, and\npropose two algorithms (NPMC-CX and NPMC-ER) to solve the\nmulti-class NP problem through cost-sensitive learning tools.\nUnder certain conditions, the two algorithms are shown to\nsatisfy multi-class NP properties. More details are available\nin the paper \"Neyman-Pearson Multi-class Classification via\nCost-sensitive Learning\" (Ye Tian and Yang Feng, 2021).",
  "License": "GPL-2",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.2.2",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-01 08:38:38 UTC",
    "User": "root"
  },
  "Author": "Ye Tian [aut], Ching-Tsung Tsai [aut, cre], Yang Feng [aut]",
  "Maintainer": "Ching-Tsung Tsai <tctsung@nyu.edu>",
  "Config/pak/sysreqs": "libglpk-dev libicu-dev libxml2-dev",
  "Repository": "https://tctsung.r-universe.dev",
  "Date/Publication": "2023-04-27 07:20:02 UTC",
  "RemoteUrl": "https://github.com/cran/npcs",
  "RemoteRef": "HEAD",
  "RemoteSha": "788e78e7899be473e994fb8e89f9407813b6e04c",
  "_user": "tctsung",
  "_type": "src",
  "_file": "npcs_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/995455b1d936eb6ef0a386adf723d5a93e859f834181f86f1fe6d2bd5a540a20",
  "_filesize": 470999,
  "_sha256": "995455b1d936eb6ef0a386adf723d5a93e859f834181f86f1fe6d2bd5a540a20",
  "_expires": "2027-01-09T08:44:26.000Z",
  "_created": "2026-10-01T08:38:38.000Z",
  "_published": "2026-10-01T08:44:27.913Z",
  "_jobs": [
    {
      "job": 110288812964,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11149313879"
    },
    {
      "job": 110288812983,
      "time": 193,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11149274037"
    },
    {
      "job": 110288813013,
      "time": 167,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11149398890"
    },
    {
      "job": 110288813072,
      "time": 218,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11149823541"
    },
    {
      "job": 110287249475,
      "time": 268,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11149568245"
    },
    {
      "job": 110288812902,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11150325979"
    },
    {
      "job": 110288813081,
      "time": 118,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "11150012276"
    },
    {
      "job": 110288813116,
      "time": 115,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "11149509529"
    },
    {
      "job": 110288813186,
      "time": 90,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "11149732981"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169",
  "_status": "success",
  "_upstream": "https://github.com/cran/npcs",
  "_commit": {
    "id": "788e78e7899be473e994fb8e89f9407813b6e04c",
    "author": "Ching-Tsung Tsai <tctsung@nyu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.1\n",
    "time": 1682580002
  },
  "_maintainer": {
    "name": "Ching-Tsung Tsai",
    "email": "tctsung@nyu.edu",
    "login": "tctsung",
    "linkedin": "in/tctsung",
    "description": "1.0X ML Scientist powered by Kiro, codex, langgraph",
    "uuid": 86901009
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dfoptim",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "smotefamily",
      "role": "Imports"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "formatR",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "gbm",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "tctsung",
      "count": 1,
      "uuid": 86901009
    },
    {
      "user": "ytstat",
      "count": 1,
      "uuid": 44246085
    }
  ],
  "_userbio": {
    "uuid": 86901009,
    "type": "user",
    "name": "Ching-Tsung(Deron) Tsai",
    "followers": 3,
    "description": "1.0X ML Scientist powered by Kiro, codex, langgraph"
  },
  "_downloads": {
    "count": 291,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/npcs"
  },
  "_searchresults": 15,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/npcs.html"
  ],
  "_realowner": "tctsung",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2021-10-19"
    },
    {
      "version": "0.1.1",
      "date": "2023-04-27"
    }
  ],
  "_exports": [
    "cv.npcs",
    "error_rate",
    "gamma_smote",
    "generate_data",
    "npcs"
  ],
  "_help": [
    {
      "page": "cv.npcs",
      "title": "Compare the performance of the NPMC-CX, NPMC-ER, and vanilla models through cross-validation or bootstrapping methods",
      "topics": [
        "cv.npcs"
      ]
    },
    {
      "page": "error_rate",
      "title": "Calculate the error rates for each class.",
      "topics": [
        "error_rate"
      ]
    },
    {
      "page": "gamma_smote",
      "title": "Gamma-synthetic minority over-sampling technique (gamma-SMOTE).",
      "topics": [
        "gamma_smote"
      ]
    },
    {
      "page": "generate_data",
      "title": "Generate the data.",
      "topics": [
        "generate_data"
      ]
    },
    {
      "page": "npcs",
      "title": "Fit a multi-class Neyman-Pearson classifier with error controls via cost-sensitive learning.",
      "topics": [
        "npcs"
      ]
    },
    {
      "page": "predict.npcs",
      "title": "Predict new labels from new data based on the fitted NPMC classifier.",
      "topics": [
        "predict.npcs"
      ]
    },
    {
      "page": "print.cv.npcs",
      "title": "Print the cv.npcs object.",
      "topics": [
        "print.cv.npcs"
      ]
    }
  ],
  "_rundeps": [
    "caret",
    "class",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "dbscan",
    "dfoptim",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "farver",
    "FNN",
    "forcats",
    "foreach",
    "formatR",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "igraph",
    "ipred",
    "isoband",
    "iterators",
    "KernSmooth",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "recipes",
    "reshape2",
    "rlang",
    "rpart",
    "S7",
    "scales",
    "shape",
    "smotefamily",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tzdb",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "npcs-demo.Rmd",
      "filename": "npcs-demo.html",
      "title": "npcs-demo",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Introduction",
        "A Simple Example",
        "Reference"
      ],
      "created": "2021-10-19 06:20:05",
      "modified": "2023-04-27 07:20:02",
      "commits": 2
    }
  ],
  "_score": 2.1760912590556813,
  "_indexed": true,
  "_nocasepkg": "npcs",
  "_universes": [
    "tctsung"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-01T08:41:14.000Z",
      "distro": "resolute",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/43ec6cd4248d6faa68ec81b27cb84f9d46f45cf40be2def6f83722ee758c88d8",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-01T08:41:25.000Z",
      "distro": "resolute",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/a3751abe45d32815ddf9f71971d556779ee9f7ad42cd9adf07c628cfafa48890",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-01T08:41:46.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/b1fbb16e8257ae8f93dc87c7e0cdba5c492573c7e3cdeeeb6a1673f99f9c8725",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-01T08:42:36.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/402e91ba456dea142c4b36427705d51fdaa39cc146cd4651ba578766b66d1ecc",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-01T08:41:14.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/541c69c108a55741de58ce3497e9081e35bc31df856ed7e24147ab710354828e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-01T08:39:59.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/69508938db2256d5fd5cb882eaa8060807f8396ef023d921d01b5e65560c4696",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-01T08:39:56.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/aab35d04bfab2fdb806f7d9bc61cdf0ca42d6581f5580d722f537f3ff4957786",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-01T08:39:46.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "https://r2.ropensci.org/1554ba3b305b6d46d30d8c1b92fe7bef52e1639ef7cff1a2f8070c4f002de61b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/36837120169"
    }
  ]
}