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 Right Numbers in the Wrong Columns

A Model Can Depend on More Than Its Code

BOTIE

A model project can look like a small program wrapped around a learning algorithm. In practice, the learned coefficients also depend on the records that supplied their inputs. Sculley and colleagues’ 2015 technical debt paper examined how those surrounding dependencies make ML systems difficult to maintain. An upstream change can alter the meaning of a prediction even when the model’s source code stays untouched.

Feature order is one particularly small dependency we can inspect. A coefficient learned for temperature must keep receiving temperature when another program sends the record. A schema describes the named fields; an adapter arranges accepted fields into the representation the model expects. This agreement is a software contract. Keeping names attached to values gives us a way to check it before a matrix calculation conceals the mix-up.

Sources for this history