TwiddleLab / Artificial Intelligence / Generative AI: Making New Things
Generating vs Classifying
What you will learn
- A classifier only needs the border between kinds: it says what a thing is.
- A generative model learns the cloud where real examples live, the data distribution.
- Sampling a random point from that cloud gives a brand new example that still looks real.
How the lesson goes
A classifier tells you what something is. How could a machine make something new?
Each dot is a real critter, placed by its ear length and body roundness.
Be the classifier: split Fluffers from Spikers with one line.
Drag the two round handles. Fluffers go on the violet side.
Now be the generator: make 3 new Fluffers.
Tap a spot on the map. It turns into a critter with those ears and that body.
A machine does the same: learn the cloud, then sample from it.
Press Learn the cloud, then Sample 6.
A generative model learns where the data lives.
Your 3 critters are the blue dots. The machine's are yellow. Both came from the same cloud.
A Fluffer generator draws one new critter. Where does it most likely land?
Tap A, B or C.
Sampling picks points in proportion to how common they are in the learned cloud. The middle of the cloud is the most common place.
The classifier says all 8 are Fluffers. Find the 3 that are not like any real one.
Tap a critter: the map shows where it came from. 3 misses allowed.
Next lesson: Autoencoders: Squeeze and Rebuild · Part of the course: Generative AI: Making New Things
Lessons are interactive and need JavaScript. Turn it on to play them.