Python Implementation of CAFÉ-Map: Context Aware Feature Mapping for mining high dimensional biomedical data
Project description
Python Implementation of CAFÉ-Map: Context Aware Feature Mapping for mining high dimensional biomedical data as described in paper [1]
Authors:
Dr. Fayyaz Minhas (afsar <at> pieas dot edu dot pk) Amina Asif (a.asif.shah01 <at> gmail dot com ) Muhammad Arif (syedmarif2003 <at> yahoo dot com) Downloaded From: http://faculty.pieas.edu.pk/fayyaz/software.html#cafemap or https://github.com/foxtrotmike/cafemap
This folder contains the package “cafeMap” and all example files.
INSTALLATION INSTRUCTIONS FOR THE PACKAGE: 1. Go to directory …./cafemap-master/cafeMap in command prompt 2. Execute the command: pip install . or python setup.py install
CafeMap package has the following modules:
cafemap.py: class implementation of cafemap according to the algorithm presented in the paper
instance.py: contains the definition of an instance to be used by cafemap
cv.py: parallel implementation of cross validation methods is present in this file.
llc.py: This module implements the approximate Locality Constrained Linear Coding as described in the 2010 paper by Wang et al. [2]. Given array of datapoints X (N x d) and codebook C (c x d), it returns a vector of approximated points Y = G * C. LLC introduces sparsity by forcing those coefficients of a given data point that correspond to codebook vectors which are not that point’s k-nearest neighbors. LLC also uses regularization.
utils.py: contains utility functions to facilitate compilation of results
Following files contain the code that generated the results published in the study:
results_table1.py produces the results presented in Table 1 of [1] l-shaped.py: produces the plots presented in Figure 2 of [1] 2x2checker.py: produces the plots presented in Figure 3 of [1] toy_circle.py: produces the plots for circular data as presented in Figure 4 of [1]. arcene.py: produces the plots presented in Figure 6 of [1] prostate.py: produces the clustering analysis plots presented in Figure 8 of [1]
Note: the plots may vary from the published according to the selection of parameters while running the code.
Example.py illustrates the use of cafeMap package. To use parallel version of the training method, joblib module should be installed. All the parameters are explained in comments.
References: [1]F. ul A. A. Minhas, A. Asif, and M. Arif, “CAFÉ-Map: Context Aware Feature Mapping for mining high dimensional biomedical data,” Computers in Biology and Medicine, vol. 79, pp. 68–79, Dec. 2016.
[2] Wang, Jinjun, Jianchao Yang, Kai Yu, Fengjun Lv, T. Huang, and Yihong Gong. “Locality-Constrained Linear Coding for Image Classification.” In 2010 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 3360–67, 2010. doi:10.1109/CVPR.2010.5540018.
Acknowledgments: We used the ROC module implemented by Dr. Asa Ben-Hur and Mike Hamilton which follows: Theoretical and pratical concepts from Fawcett, T. ROC graphs: Notes and pratical considerations for data mining researchers. HPL-2003-4, 2003.
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 cafemap-0.2.tar.gz
.
File metadata
- Download URL: cafemap-0.2.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ed9918e93d6c8629716f878f28b9f901331d0666274bb13f92592f798747e2 |
|
MD5 | 1b86b3bb7d24b72c574489bdb2936ab9 |
|
BLAKE2b-256 | c227c7811919912a4d3c503ecdbc6af42689fdf0fbf225a475efa6cd2041c7bb |
File details
Details for the file cafemap-0.2-py3-none-any.whl
.
File metadata
- Download URL: cafemap-0.2-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4757a836cde0c1ba3a81193f7306c4714b71d0fc788bf88d2ac5f45a548f4061 |
|
MD5 | 53ca4d352b54cd1b1397dd8bf5d6d550 |
|
BLAKE2b-256 | 701e8d173f6224e181a9f1b2d0403aded930952392fb9fe405f6de18d3ec8ce8 |