Skip to main content

An integrated Python toolkit for classifiability analysis

Project description

pyCLAMs

pyCLAMs: An integrated Python toolkit for classifiability analysis [J]. SoftwareX, Volume 18, June 2022, 101007, doi: 10.1016/j.softx.2022.101007
https://doi.org/10.1016/j.softx.2022.101007

Installation

pip install pyCLAMs pip install rpy2 You should also have the R runtime with the ECol library (https://github.com/lpfgarcia/ECoL) installed.

How to use

Download the sample dataset from the /data folder Use the following sample code to use the package:

  # import the library
  from pyCLAMs import clams

  # load the dataset or generate a toy dataset by X,y = mvg(md = 2)
  df = pd.read_csv('sample.csv')
  X = np.array(df.iloc[:,:-1]) # skip first and last cols
  y = np.array(df.iloc[:,-1])

  # get all metrics
  clams.get_metrics(X,y) # Return a dictionary of all metrics

  # get metrics as JSON
  clams.get_json(X,y)

  # get an html report and display in Jupyter notebook
  from IPython.display import display, HTML
  display(HTML(clams.get_html(X,y)))

Extra Material

A more friendly GUI tool based on pyCLAMs can be accessed at http://spacs.brahma.pub/research/CLA

Metrics added since the original publication

correlation.r2 - R2, the R-squared effect size test.CHISQ, test.CHISQ.log10, test.CHISQ.CHI2 - Chi-squared test

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

pyCLAMs-0.1.8.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

pyCLAMs-0.1.8-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file pyCLAMs-0.1.8.tar.gz.

File metadata

  • Download URL: pyCLAMs-0.1.8.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/1.5.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyCLAMs-0.1.8.tar.gz
Algorithm Hash digest
SHA256 322e04f68e263139c2e4f5b0f1ca90b1b56a52e559dc9e14f969247e8b132b19
MD5 8f78543d25179c32b99d6a678416a1f9
BLAKE2b-256 ec853afce67bd08ec5e2d59dd6475efb9ec6d4398090907843ed1e43fb2a950c

See more details on using hashes here.

File details

Details for the file pyCLAMs-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pyCLAMs-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/1.5.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pyCLAMs-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 186a15956d677e6685ff96cc154f587af027430d14d0e402e37416291f993a1c
MD5 058efd2c7c71f7b6620ae17c5d269ccd
BLAKE2b-256 e3c2d787043fed6c33adedd6721e2dc417e248504ea36937f9d5ff02ab721603

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