/ml-workers

Machine Learning Workers for Project Cognoma

Primary LanguageJupyter NotebookOtherNOASSERTION

Cognoma ml-workers

This repository houses the machine learning worker code. The workers access the core-service using an HTTP RESTful API. The machine learning code used by the workers comes from the machine-learning repository.

Getting started

Make sure to fork this repository on +GitHub first.

Prerequisites

  • Python 3 - tested with Python 3.5.1
  • virtualenv - tested on 15.0.2

Setup

USERNAME=your_github_handle # Change to your GitHub Handle
git clone git@github.com:${USERNAME}/ml-workers.git
cd ml-workers
virtualenv --python=python3 env
source env/bin/activate
pip install --requirement requirements.txt

Test

Replace '/ml-workers' with the path to your directory

docker run -v /ml-workers:/code ml-workers /bin/bash -c "python test_ml_task_runner.py"