chapter eight

8 Deploying the Model

 

This chapter covers

  • Overview of model deployment
  • Deployment vs one-off scoring
  • Why deployment is a difficult topic
  • Steps to deploy your model
  • Introduction and details on pipelines
  • Maintaining a model once it has been deployed

In the Chapter 6 we went through the process of iteratively training the deep learning model for predicting streetcar delays, and in Chapter we went through a further set of experiments to explore the behaviour of the model. Now that we have a trained model, we are going to look at two ways we can deploy the model or, in other words, make it possible for streetcar users to get predictions about whether their streetcar trips are going to be delayed. First, we’ll give an overview of the deployment process. Next, we’ll contrast the one-off scoring we introduced in the last chapter with deployment. We will then go through the specific steps to deploy the model using two approaches: with a simple web page and with Facebook Messenger. Next, we will describe how we encapsulate the data preparation process using pipelines and go over details of how pipelines were implemented for the streetcar delay prediction model. We will wrap up the chapter with a review of how to maintain a model once it has been deployed.

8.1       Overview of model deployment

8.2       If deployment is so important, why is it so hard?

8.3       Review of one-off scoring

8.4       The user experience with web deployment

8.5       Steps to deploy your model with web deployment

8.8       Behind the scenes with Facebook Messenger deployment

8.9       More background on Rasa

8.10  Steps to deploy your model in Facebook Messenger with Rasa

8.11  Introduction to pipelines

8.14  Maintaining a model after deployment

8.15  Summary