Checking your account

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

Did the Caller Leave It Out, or Send No Reading?

A Named Field Still Needs an Agreement

BOTIE

An API, or application programming interface, lets one program ask another to do something. Here a sensor client sends readings to a prediction service. The two programs need an agreement about what those messages mean. Does leaving out temperature ask the service to use a default? Does sending null mean that no reading was available? Without that agreement, a harmless-looking replacement can change the model’s input.

A schema records rules that a program can check, including which field names must be present and which values they may contain. JSON Schema treats presence and null as separate questions. That distinction addresses a practical problem in exchanging records: a sender can produce a readable message that the receiver misunderstands. Sculley and colleagues’ 2015 paper describes how such upstream dependencies become a maintenance problem in ML systems. We will make this small part of the agreement explicit before applying the model’s saved transformations.

Sources for this history