Skip to main content

Data Complexity Measures

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

data-complexity-0.1.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

data_complexity-0.1.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file data-complexity-0.1.3.tar.gz.

File metadata

  • Download URL: data-complexity-0.1.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for data-complexity-0.1.3.tar.gz
Algorithm Hash digest
SHA256 02314a58ff3381d925977df99dcdff5e8334a0224ab26852ab54aa91b061cacb
MD5 b8382fc3b2da477e749114e0587a5bca
BLAKE2b-256 eff8b48cbcde432893b49ae300cda3376c3aa3619798a93eb77325f95cfa5594

See more details on using hashes here.

File details

Details for the file data_complexity-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: data_complexity-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for data_complexity-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f17f3f8a08a8ca8baeb78fd9d2b535c460b73781d3ade783f0f664caaa91d983
MD5 acdeef83702cf1abfeb9e83002800212
BLAKE2b-256 ec92e4ece9ab281ef7cfd6a01bfd7468d3e90a576a6afe75730a7c959bd89788

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page