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.
Make sure to fork this repository on +GitHub first.
- Python 3 - tested with Python 3.5.1
- virtualenv - tested on 15.0.2
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
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"