26/35
Part 5 of 6 · Prove it workedLearn and do
Did the model improve? Retrain against random picks at the same cost
The final test of the whole system is the model it trains.
| Added to the same start | Then | |
|---|---|---|
| model 1 | N mined images | the same three tests |
| model 2 | N random images, labeled at the same cost | the same three tests |
Run both arms from the same starting point, with the same number of images, , labeled at the same cost. Then evaluate both on the same three tests:
- a test set for the target slices, built by a separate labeling pass that never used the miner's scores
- the standard test set, to catch regressions
- a fresh random sample of production traffic
The random arm is the control that matters. We added 50,000 images and the model improved is true of almost any 50,000 labeled images. The claim worth making is that these 50,000 beat 50,000 random ones.
Retrain each arm with several seeds, since the noise between two retrains can be larger than the gain.
In the editor, write mean_gain(mined, random) and clear_win(mined, random). Each list holds the slice error, in percent, of three retrains with different seeds: mined added the miner's images, and random added random ones at the same cost.