Package: wconf 1.2.0

Alexandru Monahov

wconf: Weighted Confusion Matrix

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>.

Authors:Alexandru Monahov [aut, cre, cph]

wconf_1.2.0.tar.gz
wconf_1.2.0.tar.gz(r-4.5-noble)wconf_1.2.0.tar.gz(r-4.4-noble)
wconf_1.2.0.tgz(r-4.4-emscripten)wconf_1.2.0.tgz(r-4.3-emscripten)
wconf.pdf |wconf.html
wconf/json (API)
NEWS

# Install 'wconf' in R:
install.packages('wconf', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.00 score 182 downloads 4 exports 0 dependencies

Last updated 7 months agofrom:7166f77934. Checks:2 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 01 2025
R-4.5-linuxOKMar 01 2025

Exports:balancedaccuracyrconfusionmatrixwconfusionmatrixweightmatrix

Dependencies:

wconf: Weighted Confusion Matrix

Rendered fromwconf_guide.Rmdusingknitr::rmarkdownon Mar 01 2025.

Last update: 2024-08-18
Started: 2023-12-13