data-complexity
The Data Complexity Measures in Python
Install
$ pip install data-complexity
How it works
Maximum Fisher's Discriminant Ratio (F1)
from dcm import dcm
from sklearn import datasets
iris = datasets.load_iris()
X = iris.data
y = iris.target
index, F1 = dcm.F1(X, y)
Fraction of Borderline Points (N1)
from dcm import dcm
from sklearn import datasets
bc = datasets.load_breast_cancer(as_frame=True)
X = bc.data.values
y = bc.target.values
N1 = dcm.N1(X, y)
Entropy of Class Proportions (C1) and Imbalance Ratio (C2)
from dcm import dcm
from sklearn import datasets
bc = datasets.load_breast_cancer(as_frame=True)
X = bc.data.values
y = bc.target.values
C1, C2 = dcm.C12(X, y)
Other Measures
Coming soon...
References
[1] How Complex is your classification problem? A survey on measuring classification complexity, https://arxiv.org/abs/1808.03591
[2] The Extended Complexity Library (ECoL), https://github.com/lpfgarcia/ECoL
Metadata
Release files for data-complexity 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| data-complexity-0.1.3.tar.gz | 6.1 kB | Without provenance | Details for data-complexity-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| data_complexity-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for data_complexity-0.1.3-py3-none-any.whl |
Total release size: 16.0 kB
Release files / data-complexity-0.1.3.tar.gz
| Download URL | data-complexity-0.1.3.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02314a58ff3381d925977df99dcdff5e8334a0224ab26852ab54aa91b061cacb
|
|
BLAKE2b-256 checksum How to use checksums |
eff8b48cbcde432893b49ae300cda3376c3aa3619798a93eb77325f95cfa5594
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5
|
Release files / data_complexity-0.1.3-py3-none-any.whl
| Download URL | data_complexity-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f17f3f8a08a8ca8baeb78fd9d2b535c460b73781d3ade783f0f664caaa91d983
|
|
BLAKE2b-256 checksum How to use checksums |
ec92e4ece9ab281ef7cfd6a01bfd7468d3e90a576a6afe75730a7c959bd89788
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5
|
Security for data-complexity 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.