Cost-Sensitive Multi-Class Classification
Overview
Reduction-based techniques for cost-sensitive multi-class classification, in which each observation has a different cost for classifying it into one class, and the goal is to predict the class with the minimum expected cost for each new observation. Implements Weighted All-Pairs (Beygelzimer, A., Langford, J., & Zadrozny, B., 2008, doi:10.1007/978-0-387-79361-0_1), Weighted One-Vs-Rest (Beygelzimer, A., Dani, V., Hayes, T., Langford, J., & Zadrozny, B., 2005, https://dl.acm.org/citation.cfm?id=1102358) and Regression One-Vs-Rest. Works with arbitrary classifiers taking observation weights, or with regressors. Also implements cost-proportionate rejection sampling for working with classifiers that don't accept observation weights.
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘David Cortes <david.cortes.rivera@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "David",
family = "Cortes",
role = c("aut", "cre"),
email = "david.cortes.rivera@gmail.com")
as necessary.- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 16
- Examples that run
- 60%3 run in a plain check · 2 never run
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 0%
- Help pages citing references
- 25%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/david-cortes/costsensitive on 2026-10-22.
Dependencies
Installing costsensitive adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.1.2.10Latest
- RR 3.6.0 released · 2019-04-26
- 0.1.2.12019-03-03
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2019-03-03
- Total releases
- 2 / 7 yrs
- License
- BSD_2_clause + file LICENSE OSI
- Download size
- 12 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("costsensitive")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.