Checking your account

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

The Number Was Valid, but It Meant Something Else

An Interface Can Carry the Right Type in the Wrong Unit

BOTIE

Programs have exchanged numerical measurements much longer than they have served learned models. A number can be well formed while using the wrong unit. NASA’s 1999 Mars Climate Orbiter investigation identified a ground-software file that supplied impulse data in English units where the receiving calculations expected metric units. The software interface specified a convention, but the integration failed to enforce it.

Our temperature service has the same kind of disagreement on a smaller scale. The fitted model saved a Celsius reference, and the new sensor supplies Fahrenheit. We need a semantic contract: an agreement about what the values mean, including their units. Checking field names and numerical types comes first, but the model also needs the measurement expressed in the representation it learned.

Sources for this history