Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Introduction to Databricks

Keep Each Model Output with Its Attempt

Coding challenges

The Requested Attempt Changes

The workflow repeats successfully, but model files and recorded measurements have become easy to confuse.

BOTIE

The request now asks for B, but a construction still returns A’s model.json. Which lookup must follow the changed request?
The inputs we are comparing

Recorded model attempts

Same in both cases

[
  {
    "runId": "A",
    "parameters": {
      "limit": 10
    },
    "metrics": {
      "mae": 2.5
    },
    "dataset": {
      "table": "maintenance.prepared.readings",
      "version": 4
    }
  },
  {
    "runId": "B",
    "parameters": {
      "limit": 20
    },
    "metrics": {
      "mae": 1.8
    },
    "dataset": {
      "table": "maintenance.prepared.readings",
      "version": 5
    }
  }
]

Attempt to inspect

The first attempt has one saved model

A

The requested attempt changes

B

Saved outputs and their owners

The first attempt has one saved model

  1. runId
    A
    path
    model.json
  2. runId
    B
    path
    model.json

The requested attempt changes

  1. runId
    A
    path
    model.json
  2. runId
    B
    path
    assessment.json
  3. runId
    B
    path
    model.json
Result for the first attempt has one saved model
runId
A
parameters
limit
10
metrics
mae
2.5
dataset
table
maintenance.prepared.readings
version
4
artifacts
  1. 0model.json
Choose an explanation to test
A Familiar Filename Belongs to Another Attempt

This check uses the pieces from “Connect the Attempt Before Attaching Its Files”.

BOTIE

Inspect attempt D. Other attempts also have model.json. Return only D’s output paths and preserve its different input table identity.
Recorded model attempts
[
  {
    "runId": "B",
    "parameters": {
      "limit": 20
    },
    "metrics": {
      "mae": 1.8
    },
    "dataset": {
      "table": "maintenance.prepared.readings",
      "version": 4
    }
  },
  {
    "runId": "D",
    "parameters": {
      "limit": 8
    },
    "metrics": {
      "mae": 3.1
    },
    "dataset": {
      "table": "maintenance.calibrated.readings",
      "version": 2
    }
  }
]
Attempt to inspect
D
Saved outputs and their owners
  1. runId
    B
    path
    model.json
  2. runId
    D
    path
    model.json
  3. runId
    D
    path
    plot.png

Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

What is still unknown about model quality after this manifest has been recorded correctly?

Keep evidence linked to the attempt before making a decision from it.

The manifest is a small local teaching schema. It does not call MLflow, upload artifacts, train a model or establish that a recorded score is a fair comparison.

Continue the courseBuilding and Running Spark Queries →
← Notebooks and Jobs