Code showing how to use a model based on the ML model base class.
This code is used in this blog post.
The makefile included with this project contains targets that help to automate several tasks.
To download the source code execute this command:
git clone https://github.com/schmidtbri/using-ml-model-abcThen create a virtual environment and activate it:
# go into the project directory cd using-ml-model-abc make venv source venv/bin/activateInstall the dependencies:
make dependenciesStart the development server:
make start-serverTest the development server with some requests:
make test-models-endpoint make test-metadata-endpoint make test-predict-endpointTo run the unit test suite execute these commands:
# first install the test dependencies make test-dependencies # run the test suite make test