ML Problem Steps

  1. Design
  2. Train
  3. Operate

Deployment

Batch

Overview

Web Service

Overview

Deploying

  1. Install scikit-learn that is compatible with the ML model itself (such as the .bin file created in the first module)

    pipenv install scikit-learn==1.0.2 scipy==1.7.3 numpy==1.21.6 flask --python=3.9
    
  2. Start the venv

    pipenv shell
    
  3. Create the predict.py and test.py files to deploy the ML model on a Flask web service.

  4. Install the gunicorn package for production, as Flask is for developing.

    pipenv install gunicorn