scoring job
runs regularly to apply the ML model to the data.Ride Duration Service
to predict the duration before starting the ride/trip.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
Start the venv
pipenv shell
Create the predict.py
and test.py
files to deploy the ML model on a Flask web service.
Install the gunicorn
package for production, as Flask is for developing.
pipenv install gunicorn