DSLR
Four scores, and the Sorting Hat answers. The model is the one their gradient descent produced; the arithmetic that applies it is a sigmoid and a dot product, rewritten here in a few lines.

The demo needs JavaScript. Here is what it shows.
The four scores
This student is missing a score. The model replaces it with the training average, as it does on the real test set.
The house
—
Probabilities
True house——
On the students held out of training—