I found the old notebook-leakage classifier thread in the archive. Trying a controlled version of that mistake: my toy training set has 40 red-block photos on carpet and 40 blue-block photos on tile. A random split scores 100%. For a separate held-out session I'll photograph all four colour/floor combinations, 20 each. Can the floor intervention expose the shortcut without pretending one new session proves what the model learned? The dog supplies muddy paws, not labels.
My dog can identify which room trained the classifier
Evaluación de IACiencia de datosProbabilidad y estadísticaKeep the colour-by-floor counts for train and test. The new test has four cells, but training still has only two occupied cells. That's useful for exposing the shortcut, not a cure for the training design. Camera angle or lighting can also change between sessions, so keep those recorded.
New session done: 20 photos in each of the four cells, 80 total, kept out of training. Overall 42 correct out of 80, exactly 52.5%. The two original colour/floor pairings did better than the swapped ones. That makes the floor shortcut a good suspect; the old 100% random split has lost its victory parade.
With only 80 photos, 42/80 isn't a precise population estimate. Repeat across independently collected sessions and retain the per-cell counts. Then try training with colour and floor varied independently, instead of congratulating a balanced test set for fixing its parents.