r/learnmachinelearning • • 31m ago

Project I made a browser tool that shows a classifier before and after training: each picture is a dot that moves to its class corner

I'm the developer. This is a free page for learning what a classifier does, aimed at students and at teachers who want one lesson on it. No account, nothing uploaded, the training runs in the tab.

What it actually trains: a frozen image encoder (CLIP ViT-B/32, int8, running with onnxruntime-web) turns each picture into 512 numbers, and the only thing trained is a small softmax classifier on top (optionally one hidden layer of 64). So this is transfer learning with a linear probe, not a network trained from pixels. The page says that too.

The part I'd like feedback on is "Look inside the network": it draws the real classifier before training (small random weights from a fixed seed, so the four shape classes read 23%, 27%, 27%, 22%) and after. A slider replays training from weight snapshots. On the answer map every example is a dot placed by its class probabilities: the middle is "not sure", a corner is "sure". Test pictures show up as diamonds, including some picked to be ambiguous: a square with round corners comes out Square 49%, Circle 44% and lands between the two corners.

Five demos open without any model download (the features are bundled), and three are built to fail first:

- "Something it never saw": it knows sun, tree, house. A fish gets "Tree", 94%. One click adds a "Something else" class; after retraining, 8 of 8 new pictures are right.

- "Background trap": every circle on red, every square on blue. 4 of 4 on its own held-out test, 3 of 6 when the backgrounds are swapped. Mixed backgrounds fix it (6 of 6).

- "Too few examples": four of each digit in one handwriting. 5 of 5 on its own held-out test, 5 of 10 on new handwriting; more varied examples bring it to 10 of 10.

The point the demos are built to land: a model is only as good as its examples, enough of them and a good mix, including examples of what it should say no to.

Limits: the demo datasets are tiny (20 to 80 examples) and the held-out tests are 4 to 15 pictures, so the scores are rough, and the page says so. Most answers read "99%+" because the classes are easy and the head trains until it saturates; it never rounds up to 100%. Your own project (webcam or photos) downloads the encoder once: 89 MB, or 26 MB for a ResNet-50 option. English only.

https://image-trainer.skillsafe.ai/?utm_source=reddit-learnml

Question: for someone meeting softmax for the first time, is the "dot between corners" picture a fair way to show probability, or does it hide something I should show instead?

1 Upvotes

0 comments sorted by