Workshop checks passed0 / 9

Databricks for ML Pipelines

Databricks gives a team a shared environment for processing data and building ML applications. Apache Spark is one of the tools that performs the calculations, with work spread across several machines. We’ll start with why that became useful, then examine what a training run needs to remember about its data and model files.

Following a distributed calculation

Spark can spread a calculation across workers. Begin with the instructions it receives, then look at why some records have to move between workers before a result can be calculated.

  1. 01
    Ready to explore
    Writing the Steps Is Different from Running Them

    A cleaning rule works on one file. What do Spark and Databricks add when a team needs to run that rule across many files, and when does the calculation actually happen?

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed
  2. 02
    Ready to explore
    One Busy Pump Can Keep Every Worker Waiting

    Most workers have finished, but one pump’s records keep the job running. Follow where matching records must meet before deciding how to share that work.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed

Keeping a dependable table history

The sensor records changed after our first training run. Which version should an old model still refer to? We need to preserve a consistent view of the table for each run.

  1. 03
    Ready to explore
    Which Version of the Table Did the Model Read?

    The code stayed the same, but a corrected input changed the result. Give the run a particular table version so we can tell a new model from a new dataset.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed
  2. 04
    Ready to explore
    A Retried File Should Not Become New Training Data

    A file finished, but its acknowledgement disappeared. Keep enough committed progress for the retry to recognise work that already reached the dataset.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed
  3. 05
    Ready to explore
    The Last Message to Arrive May Be an Older Reading

    A newly arrived file can contain an old correction. Keep each pump’s source version, including its deletion, so delivery order cannot choose the current reading.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed

Publishing a pipeline result

A pipeline finds an invalid reading. Should it record the failure and continue, leave that row out, or stop the update? Those choices change what reaches the model.

  1. 06
    Ready to explore
    A Quality Check Needs a Decision About Failure

    The dashboard found an invalid reading, yet training still received it. Decide what a failed check should change in the published dataset.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed

Connecting model evidence to an artifact

One model run has a lower error than another. Before we prefer it, we need to know what each run was evaluated on. MLflow can keep those details alongside the model files.

  1. 07
    Ready to explore
    A Better Score on Which Dataset?

    A lower error is tempting. First find out which observations produced that score and which saved model belongs to it.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed

Making feature access explicit

A training job can name a table and still lack permission to read it. A feature can also be present now but unavailable at the time of an older prediction. We’ll handle those as separate requirements.

  1. 08
    Ready to explore
    SELECT Is Not the Whole Permission to Read a Table

    The table is there, and a colleague can read it. Why does the scheduled training job still fail to access the same records?

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed
  2. 09
    Ready to explore
    Give Each Prediction the Features It Could Actually Have Seen

    The current temperature is useful for a prediction now. An old prediction needs the value that was available then, including a deliberate rule for missing or stale readings.

    • Built: not completed
    • Changed inputs: not completed
    • Exercises: not completed