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
classification.Mean_KLD - mean KLD (Kullback-Leibler divergence) between ground truth and predicted one-hot encodings
correlation.r2 - R2, the R-squared effect size
test.CHISQ, test.CHISQ.log10, test.CHISQ.CHI2 - Chi-squared test
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 pyCLAMs-0.1.14.tar.gz
.
File metadata
- Download URL: pyCLAMs-0.1.14.tar.gz
- Upload date:
- Size: 18.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19612c42d4eb04995f0a9917826e09eed50c9d966fa091ec10a871d0f7008df8 |
|
MD5 | 16d9d8efe67b386f6effd7c48fd86568 |
|
BLAKE2b-256 | 9612300756d9edb9f4229a511b7dd3be6bcb95f4efc83fb4b20bba50eea58dbd |
File details
Details for the file pyCLAMs-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: pyCLAMs-0.1.14-py3-none-any.whl
- Upload date:
- Size: 20.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3683cd1d690a7a9f4a53fd82f824dff96e54f241dede62dd5d344513d8290445 |
|
MD5 | 5a5c961c1c3bf5cfe7cf80f98cae6e94 |
|
BLAKE2b-256 | 9ebcd59c30ad8e6937dd4059f6e4c00bcdfc8d7bce4f7472192134b3096bf07c |