Checking your account

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

Model and Tool API Contracts

Keep the zero; expose the missing measurement

Coding challenges

The old shortcut sees four false-looking inputs

A truthiness shortcut made a valid zero disappear.

BOTIE

The changed case contains zero, null, text "0" and an absent field. Which distinction must the repaired construction preserve?
The inputs we are comparing

Sensor request records

Number and omitted field

  1. temperature
    8
  2. temperature
    Not provided

Zero, null and text arrive

  1. temperature
    0
  2. temperature
    null
  3. temperature
    "0"
  4. temperature
    Not provided

Optional numerical field name

Same in both cases

temperature

Declared default

Same in both cases

5
Result for number and omitted field
[
  [
    "keep",
    "default"
  ],
  [
    8,
    5
  ]
]
Choose an explanation to test
A Boolean reaches the vibration field

This check uses the pieces from “Inspect what the caller supplied”.

BOTIE

Botie receives a flag, a negative reading and an omitted vibration. Predict both aligned lists before testing.
Sensor request records
  1. vibration
    false
  2. vibration
    -2
  3. vibration
    Not provided
Optional numerical field name
vibration
Declared default
1.5

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 would change if the model had been trained with a distinct missing-value indicator?

Write the missing/null policy beside the fitted model, rather than inferring it from truthiness.

Rejected null entries are diagnostic placeholders and must stay out of the model input. A deployed service also needs request-size limits and enforcement on the server.

Continue the courseYesterday’s Client Still Sends the Old Request →