Model maintenance

MLOps Deployment and Life Cycling

Nemanja Radojkovic

Senior Machine Learning Engineer

Previously...

  • How to catch anomalies and disturbances?

 

Focus of this lesson: ML model failure

MLOps Deployment and Life Cycling

model deteriorated

MLOps Deployment and Life Cycling

improve the model

MLOps Deployment and Life Cycling

improve dataset

MLOps Deployment and Life Cycling

model centric

MLOps Deployment and Life Cycling

data centric

1 https://datacentricai.org/
MLOps Deployment and Life Cycling

Quality above quantity

  • Get more features with relevant information
  • Get better labels

 

Label == Target variable value in the training set

Label quality == label closeness to the ground truth

MLOps Deployment and Life Cycling

poor labels

MLOps Deployment and Life Cycling

poor prediction

MLOps Deployment and Life Cycling

Benefits of labeling tools

Manual labeling is complex, lengthy, error-prone

Use good labeling tools!

  • Labeling more efficient
  • More accurate
  • User interface fit for purpose
  • "Label these examples first for maximum impact"
  • "It seems you made a mistake here"

labeling tool

Example: Image labeling tool, for building image classifiers

MLOps Deployment and Life Cycling

human in the loop

MLOps Deployment and Life Cycling

HIL 2

MLOps Deployment and Life Cycling

expert input

MLOps Deployment and Life Cycling

MLOps Deployment and Life Cycling

When the labels arrive

  • Run ML build pipeline => New model
  • Check if new model is better than the old one
    • YES => test and deploy
    • NO => keep searching,
MLOps Deployment and Life Cycling

Keep searching

  • Try new models
  • Try new features
  • Try new data sources

 

Immensely helpful: Metadata store (MLFlow Tracking, etc)

  • Document the model selection journey
  • Avoid repeating same experiments

 

In any case: MLOps helps us maintain our model in the fastest, most efficient way

MLOps Deployment and Life Cycling

Let's practice!

MLOps Deployment and Life Cycling

Preparing Video For Download...