{
  "_id": "6a2008deb401979e73446f73",
  "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-06-03 10:54:27 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",
  "MD5sum": "a782fb689522b1230a27d859bb1a147d",
  "_user": "tctsung",
  "_type": "src",
  "_file": "npcs_0.1.1.tar.gz",
  "_fileid": "25d9a6bb8e20413dd65ff36c06658af9797cc627a1e6babe102daf9491cef94d",
  "_filesize": 469093,
  "_sha256": "25d9a6bb8e20413dd65ff36c06658af9797cc627a1e6babe102daf9491cef94d",
  "_created": "2026-06-03T10:54:27.000Z",
  "_published": "2026-06-03T10:58:38.373Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79277906473,
      "time": 211,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7382671365"
    },
    {
      "job": 79277906422,
      "time": 172,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7382658551"
    },
    {
      "job": 79277906409,
      "time": 168,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7382649667"
    },
    {
      "job": 79277906449,
      "time": 172,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7382650434"
    },
    {
      "job": 79277236092,
      "time": 243,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7382596494"
    },
    {
      "job": 79277906423,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7382646531"
    },
    {
      "job": 79277906452,
      "time": 123,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7382641676"
    },
    {
      "job": 79277906420,
      "time": 125,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7382642403"
    },
    {
      "job": 79277906464,
      "time": 117,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7382639613"
    }
  ],
  "_buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "description": "1.0X ML Scientist powered by Kiro, codex, langgraph"
  },
  "_downloads": {
    "count": 143,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/npcs"
  },
  "_searchresults": 17,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/npcs.html",
    "manual.pdf"
  ],
  "_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.230448921378274,
  "_indexed": true,
  "_nocasepkg": "npcs",
  "_universes": [
    "tctsung"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-03T10:57:24.000Z",
      "distro": "noble",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "52da45f282633075e94f309113482066782472f612829a44a3b4d924c1ce2dcf",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-06-03T10:56:49.000Z",
      "distro": "noble",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "947c2855b2aedaca6e65a52a1b9ee5c3efa9bd637418a65c8c39fea025fb7a5b",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-03T10:56:38.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "c2afca641e63c4690d1f2b19a62ab9f3029120020dbeec7f5ef64287f20376e4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-06-03T10:56:35.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "38a1934035d4cae4588aebb19e088f091d9304d1792608584970ab38c3e0b171",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-06-03T10:57:03.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "b27e97364179784fd14dafd552a6e7ac0364b304b57b28878ca9ce945e944c33",
      "status": "success",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T10:55:51.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "ce1e6dc707de9a79c1dc5a5a71bda01e5dd0ed20c19d76976187dd0efe7f6cc5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T10:55:54.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "8c13aaf926120d29728e068787775b08fd1b93c56777b6ea83cb517a8e9c240d",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-06-03T10:55:44.000Z",
      "commit": "788e78e7899be473e994fb8e89f9407813b6e04c",
      "fileid": "bd07669520c6f9e3a5b4033085b481fc301f667f3f6b3ff27660d481edef5041",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/tctsung/actions/runs/26879965080"
    }
  ]
}