Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.6 KB

README.md

File metadata and controls

52 lines (40 loc) · 1.6 KB

opensnp-challenge-starter-kit

CrowdAI-Logo

Starter kit for getting started in the CrowdAI OpenSNP Challenge.

Installation

git clone https://github.com/crowdAI/opensnp-challenge-starter-kit
cd opensnp-challenge-starter-kit
pip install -r requirements.txt
pip install -U crowdai

Data download and preparation

Download all the files from the CrowdAI Dataset page, and put them in the data/ folder. Then :

cd data/
gunzip *.gz

NOTE: You might NOT need to download all the files, or even use all the files to come up with your predictions. It is recommended to use just the subset_cm_train.npy and train_heights.npy to train your model, and use subset_cm_test.npy to make the predictions.

Basic Usage

import crowdai
challenge = crowdai.Challenge("OpenSNPChallenge2017", "YOUR_CROWDAI_API_KEY_HERE")

data = ... #a list of 137 predicted heights for all the 137 corresponding data points in the test set
challenge.submit(data)
challenge.disconnect()

Submit Random Predictions

python random_predict.py --api_key=<<YOUR_CROWDAI_API_KEY_HERE>>

Predictions by Linear Regression

python linear_regression_predict.py --api_key=<<YOUR_CROWDAI_API_KEY_HERE>>

Predictions by Support Vector Regression

python svr_predict.py --api_key=<<YOUR_CROWDAI_API_KEY_HERE>>

Author

S.P. Mohanty [email protected]