Skip to content

wconf

1.2.0

Weighted Confusion Matrix

0packages depend
1.8Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Alexandru MonahovFirst published 2023-12-123 releasesCRAN page ↗

Allows users to create weighted confusion matrices and accuracy metrics that help with the model selection process for classification problems, where distance from the correct category is important. The package includes several weighting schemes which can be parameterized, as well as custom configuration options. Furthermore, users can decide whether they wish to positively or negatively affect the accuracy score as a result of applying weights to the confusion matrix. Functions are included to calculate accuracy metrics for imbalanced data. Finally, 'wconf' integrates well with the 'caret' package, but it can also work standalone when provided data in matrix form. References: Kuhn, M. (2008) "Building Perspective Models in R Using the caret Package" doi:10.18637/jss.v028.i05 Monahov, A. (2021) "Model Evaluation with Weighted Threshold Optimization (and the mewto R package)" doi:10.2139/ssrn.3805911 Monahov, A. (2024) "Improved Accuracy Metrics for Classification with Imbalanced Data and Where Distance from the Truth Matters, with the wconf R Package" doi:10.2139/ssrn.4802336 Starovoitov, V., Golub, Y. (2020). New Function for Estimating Imbalanced Data Classification Results. Pattern Recognition and Image Analysis, 295–302 Van de Velden, M., Iodice D'Enza, A., Markos, A., Cavicchia, C. (2023) "A general framework for implementing distances for categorical variables" doi:10.48550/arXiv.2301.02190.

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,113 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
20%

Downloads

1.8K
CRAN downloads in the past year
Rank #21,745 · ~5/day · ~152/mo
Daily download trend is not available in this view yet.
15130 days
55590 days
1.8K1 year
Compare downloads with other packages →
Also on83 r2u11 autocran

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.0Latest
    2024-08-18 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.0
    2024-04-23 · diff ↗
  • 1.0.0
    2023-12-12
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-12-12
Total releases
3 / 3 yrs
License
CC BY-SA 4.0
Download size
43 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →