Skip to content

Latest commit

 

History

52 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cancer Classification from Gene Expression - CMPT 310 Term Project - Group 22

Our project trains a classifier to predict cancer type from patient gene expression data. We compare the performance of 2 different types of models, random forest and a neural network for binary classification on Acute Myeloid Leukemia (AML) and Acute Lymphoblastic Leukemia (ALL). The dataset we are using is from kaggle and contains 72 patients with 7130 gene expressions, each of these patients either have AML or ALL.

Repository layout (what do I find where?)

|- data                     # folder containing all data
    |- leukemia_dataset     # raw, unprocessed data files
    |- preprocessed         # preprocessed data
|- figures                  
|- src                      # source code
    |- visualization        # code for producing figures

Motivation

AML and ALL claims over 1,400 Canadian lives annually, distinguishing these symptomatically similar cancers is critical because they require vastly different treatments.

Table of contents

  1. Installation
  2. Reproducing Results

Installation

Conda

Please ensure that you have conda installed and run the following

conda env create --name cancer_classification_310 --file=environment.yml

Then activate the conda environment by running the following

conda activate cancer_classification_310

Reproducing Results

Ensure the conda enviroment is active and navigate into the src folder.

cd src/

To reproduce the results in our paper, run the following command

python learn.py

Which should result in training and testing of both models and all figure generations.

To run the hyperparameter sweep, run the following command

python test_hps.py

Which should result in generating the parallel coordinates plot
Note: this may take a few minutes as many Random Forest models are trained in this process

To preprocess the data (however the preprocessed data is already provided), run the following command

python preprocess.py

Which should result in the train.csv and test.csv generatation located in /data/preprocessed

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages