Imbalanced Multiclass Classification Performance Curve
Project description
IMCP: Imbalanced Multiclass Classification Performance Curve
ROC curves are a well known tool for multiple classifier performance comparison. However, it does not work with multiclass datasets (more than two labels for the target variable). Moreover, the ROC curve is sensitive to imbalance of class distribution.
The package provides a tool - called Imbalanced Multiclass Classification Performance curve - that solves both weaknesses of ROC: application to multiclass and imbalanced datasets.
With the IMCP curve the classification performance can be graphically shown for both multiclass and imbalanced datasets.
The package provides the methods for visualizing the IMCP curve and to provide the area under the IMCP curve.
Installation
IMCP can be installed from PyPI
pip install imcp
Or you can clone the repository and run:
pip install .
Sample usage
from imcp import plot_mcp_curve
from sklearn.linear_model import LogisticRegression
from sklearn.datasets import load_iris
X, y = load_iris(return_X_y=True)
clf = LogisticRegression(solver="liblinear").fit(X, y)
plot_mcp_curve(y, clf.predict_proba(X))
Citation
The methodology is described in detail in:
[1] J. S. Aguilar-Ruiz and M. Michalak, “Classification performance assessment for imbalanced multiclass data”, Scientific Reports, 14:10759, 2024, doi: 10.1038/s41598-024-61365-z.
Also, the mathematical background of the multiclass classification performance can be found in:
[2] J. S. Aguilar-Ruiz and M. Michalak, "Multiclass Classification Performance Curve," in IEEE Access, 10:68915-68921, 2022, doi: 10.1109/ACCESS.2022.3186444.
Documentation
Full documentation is available here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file imcp-1.0.1.tar.gz
.
File metadata
- Download URL: imcp-1.0.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2108c2d5f91f9409e81c147d8e43c50604839726e8c77250bab694af372ccc5 |
|
MD5 | 26a7cd6e12929374d181866b2180516b |
|
BLAKE2b-256 | a58aa594123f02bd4b92cffaadd0a73b65aecb03545dfb8f8b0beeab8c09436e |
File details
Details for the file imcp-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: imcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76735abd939f014bdf5acaa82a7e4b760455a505051075cb1ee6e8807a065b9a |
|
MD5 | bfd0d7ecbf457b1e26dc0f68ac3e8e1e |
|
BLAKE2b-256 | 09d8e0a794879a5c50af9028e3a1514dbdd2149b9fb396f629561445ed3db740 |