ladderlore
Request a guide
  • Type a service name, like S3 or IAM.

Concept

The ML pipeline

The stages from raw data to a model in production, and back again.

Collect data
Prepare data
Engineer features
Train
Tune
Evaluate
Deploy
Monitor
  1. 1Collect data from your sources.
  2. 2Prepare it: clean it and fix gaps.
  3. 3Engineer features: choose the inputs.
  4. 4Train the model.
  5. 5Tune its settings.
  6. 6Evaluate it on unseen data.
  7. 7Deploy it for applications to use.
  8. 8Monitor it. New data starts the loop again.
Eight stages, ending with a loop back to data.

Step by step

  1. 1Collect data from your sources.
  2. 2Prepare it: clean it and fix gaps.
  3. 3Engineer features: choose the inputs.
  4. 4Train the model.
  5. 5Tune its settings.
  6. 6Evaluate it on unseen data.
  7. 7Deploy it for applications to use.
  8. 8Monitor it. New data starts the loop again.

Eight stages, ending with a loop back to data.

  • Data

    Stages
    Collect, prepare, features
    Result
    Data ready to learn from
  • Model

    Stages
    Train, tune, evaluate
    Result
    A model that passes the test
  • Operate

    Stages
    Deploy, monitor
    Result
    A model that stays accurate
Three phases of the pipeline.

What it is

An ML pipeline is the series of stages that turns data into a working model. First collect data. Then prepare it: clean it and fix gaps. Next, engineer features: pick or build the inputs the model will use, such as scaling numbers or turning categories into numbers. Then train the model.

After training, tune the model’s hyperparameters (see Hyperparameters and tuning), then evaluate it on data it has not seen. If it is good enough, deploy it so applications can use it. Then monitor it in production.

What it is

It is a loop. Monitoring may show the model getting worse, and then you collect new data and train again. The exam asks you to name and tell the stages apart, not to do them.

Remember

  • Collect, prepare, engineer features, train, tune, evaluate, deploy, monitor.
  • Preparing data means cleaning it and fixing gaps.
  • Features are the inputs the model learns from.
  • Evaluate on data the model did not train on.
  • Monitoring feeds back into new data and retraining.

On the exam

  • “Clean data and fix missing values” points to the prepare stage.
  • “Test the model on unseen data” points to the evaluate stage.
  • “Watch a deployed model for drift” points to the monitor stage.