Skip to content

Code showing how to use a model based on the ML model base class.

License

Notifications You must be signed in to change notification settings

schmidtbri/using-ml-model-abc

Repository files navigation

Model Service

Code showing how to use a model based on the ML model base class.

This code is used in this blog post.

Installation

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

Running the unit tests

To run the unit test suite execute these commands:

# first install the test dependencies
make test-dependencies

# run the test suite
make test

About

Code showing how to use a model based on the ML model base class.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published