Skip to main content

FastEMC is a method for dimensionality reduction.

Project description


Fast Exponential Monte Carlo

FastEMC is a method for dimensionality reduction. FastEMC was designed for datasets with a small number of samples, and a large number of features. This version of FastEMC can only handle numerical features, and binary classification of samples. FastEMC can be installed using pip

$ pip install fastemc

If pip fails on windows try installing scikit-learn manually using conda, then install fastemc using pip. You can interact with FastEMC directly using the python module

>>> import fastemc
>>> scores, clusters =, labels, **kwargs)

or through the command line

$ python -m fastemc --features features.csv --labels labels.csv

The features.csv and labels.csv files can be generated using pandas, e.g.,

>>> labels.to_csv("labels.csv")
>>> features.to_csv("features.csv")

where labels and features are pandas dataframes with the same index.

FastEMC outputs a list of feature clusters. The size of each cluster and the number of clusters to collect are optional parameters. Each cluster is also given a score. The score is based on k-fold cross-validation of a logistic regression classifier using only features in the cluster.

When using FastEMC in published works, please cite the original manuscript and the author of the software:

[1] Stackhouse, C.T.; Rowland, J.R.; Shevin, R.S.; Singh, R.; Gillespie, G.Y.; Willey, C.D. A Novel Assay for Profiling GBM Cancer Model Heterogeneity and Drug Screening. Cells 2019, 8, 702. (

[2] Rowland, J.R. FastEMC. 2019. (

Project details

Download files

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

Files for fastemc, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size fastemc-0.0.6-py3-none-any.whl (17.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size fastemc-0.0.6.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page