HUB
Sign inSign up

genepattern/randomforest

By genepattern

•Updated almost 3 years ago

GenePattern RandomForest classifier module

Image
0

414

genepattern/randomforest repository overview

⁠Random Forest Classifier (Non-GPU)

⁠Omar Halawa ([email protected]⁠) of the GenePattern Team @ Mesirov Lab - UCSD


The following repository is a GenePattern module written in Python 3, using the following Docker image⁠.
It serves as a foundation for implementing the cuML-based GPU Random Forest Classifier.

It performs either cross-validation (takes one dataset as input) or test-train prediction (takes two datasets, test and train). Each dataset consists of two file inputs, one for feature data (.gct), and one for target data (.cls). It processes files into DataFrames and performs random forest classification (uses LOOCV (leave-one-out cross validation) in the case of cross-validation) on them using Scikit-learn's RandomForestClassifier, generating an accuracy score and a prediction results file (.pred.odf) that compares the "true" class to the model's prediction. Created for module usage through optional arguments for classifier parameters.

Documentation on usage and implementation is found here⁠. A detailed step-by-step explanation behind how Random Forest works is found here⁠. All source files, including cross-validation runs for all_aml_train (.gct⁠, .cls⁠), BRCA_HUGO (.gct⁠, .cls⁠), and iris (.gct⁠, .cls⁠) datasets as well as a test-train run with all_aml_test (.gct⁠, .cls⁠) and all_aml_train (.gct⁠, .cls⁠) all with output examples⁠ ("examples," as the classifier utilizes randomness, so each run varies) are available for better reproducibility and portability. However, to see how randomness can be "reproduced," read this⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:5727ecbb0…
Size
525.9 MB
Last updated
almost 3 years ago
docker pull genepattern/randomforest:v0.5