Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.44 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.44 KB

CHUV DockerHub ImageVersion ImageLayers

Python k-nearest neighbors

Implementation of k-nearest neighbors algorithm in Python.

Number of neighbors is parametrized using env MODEL_PARAM_k.

Usage

Works only on single node yet.

compute

Build (for contributors)

Run: ./build.sh

Integration Test (for contributors)

Run: captain test

Publish (for contributors)

Run: ./publish.sh

Unit tests (for contributors)

WARNING: unit tests can fail nondeterministically on AttributeError: can't set attribute because of some error in Titus port to Python 3

Create symlink from python-knn to mip_helper module from python-mip

ln -s ~/projects/python-base-docker-images/python-mip/mip_helper/mip_helper mip_helper

Run unit tests

find . -name \*.pyc -delete
(cd tests; docker-compose run test_suite -x --ff --capture=no)