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

Package details

AuthorAlexandru Monahov [aut, cre, cph] (<https://orcid.org/0000-0001-6204-9131>)
MaintainerAlexandru Monahov <alexandru.monahov@proton.me>
LicenseCC BY-SA 4.0
Version1.1.0
URL https://www.alexandrumonahov.eu.org/projects
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("wconf")

Try the wconf package in your browser

Any scripts or data that you put into this service are public.

wconf documentation built on May 29, 2024, 8:21 a.m.