Skip to content

costsensitive

0.1.2.10Package record

Cost-Sensitive Multi-Class Classification

0packages depend
2.2Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

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

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 1.9 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.1.2.10
README· In the repository, left out of the releaseVignettesNoNEWSNoCitation fileNoWebsitenot declared in DESCRIPTION
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

2.2K
CRAN downloads in the past year
Rank #21,064 · ~6/day · ~182/mo
Daily download trend is not available in this view yet.
24630 days
63090 days
2.2K1 year
Compare downloads with other packages →
Also on357 r2u2 autocran

Repository

49Stars
19Forks
2Open issues
0Open PRs
0Releases
62Commits
2Commit identities
cost-sensitive-classificationmulti-label-classification
License file reads as BSD-2-Clause · 62 commits · Last activity 2025-05-09
Responsiveness
How these are sampled
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

2025-09-12 · 482026-07-07 · 49
PracticesBeta

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.

Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)

Installing costsensitive adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Suggests (1)
parallel
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1.2.1 (2019)

Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.2.10Latest
    record
    2019-07-28 · current release · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.2.1
    record
    2019-03-03
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for costsensitive version 0.1.2.10 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy