Neural Network Playground

Draw patterns and watch a neural network learn to classify them in real-time

Neural Network Sandbox

Create your own pattern by clicking on the canvas! Switch between blue and red points, then train a neural network to learn how to separate them. The more creative your pattern, the more challenging it is for the AI!

Hidden Neurons (Network Capacity)
Think of this as brain power. Simple patterns (like a line) need fewer neurons (3-4). Complex patterns (spirals, circles) need more neurons (8-12). Experiment!
Learning Rate (Training Speed)
Controls how fast the network learns. Too high = overshooting. Too low = takes forever. Sweet spot is usually 0.2-0.5 for most patterns.

Drawing Controls

Points created: 0(Add at least 4 points to start training)
Epochs Trained
0
Current Accuracy
Hidden Neurons
6
Learning Rate
0.30

Network Settings

Interactive Canvas

Click anywhere to add points!
Click on the canvas to add blue points

How to use:

  • Step 1: Click "Blue Class" or "Red Class" to choose your color
  • Step 2: Click on the canvas to place points—make any pattern you like!
  • Step 3: Once you have at least 4 points, click "Start Training"
  • Step 4: Watch the background fill in as the AI learns your pattern
  • Pro tip: Try making spirals, circles, diagonal lines, or random patterns to challenge the AI!
  • Challenge: Can you create a pattern that takes 100+ epochs to learn?