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-abc
Then create a virtual environment and activate it:
# go into the project directory
cd using-ml-model-abc
make venv
source venv/bin/activate
Install the dependencies:
make dependencies
Start the development server:
make start-server
Test the development server with some requests:
make test-models-endpoint
make test-metadata-endpoint
make test-predict-endpoint
To run the unit test suite execute these commands:
# first install the test dependencies
make test-dependencies
# run the test suite
make test