Labeled examples, then a held-out test
Fit a line, a curve, a tree, neighbors, or a network. Then test it on points it never saw.
TensorFlow.js