Implementation of k-nearest neighbors algorithm in Python.
Number of neighbors is parametrized using env MODEL_PARAM_k
.
It has two modes
compute --mode intermediate
compute --mode aggregate --job-ids 1 2 3
Intermediate mode calculates knn from a single node, while aggregate mode is used after intermediate to combine knn from multiple jobs. Intermediate mode can be also used to calculate knn from single node.
Run: ./build.sh
Run: captain test
Run: ./publish.sh
WARNING: unit tests can fail nondeterministically on AttributeError: can't set attribute
because of some error
in Titus port to Python 3
Run unit tests
find . -name \*.pyc -delete
(cd tests; docker-compose run test_suite -x --ff --capture=no)