Neural Network Playground

← Back to Projects

Interactive Neural Network Training
Train a neural network to classify 2D data points. Click on the canvas to add custom data points! Watch as the network learns to separate different classes through backpropagation.

🎯 Dataset

🧠 Network Architecture

βš™οΈ Training Settings

πŸ“Š Training Statistics
Status: Ready
Epoch: 0
Loss: 0.000
Accuracy: 0.0%
Time: 0.0s
Network Structure
Input (2) β†’ [4] β†’ [4] β†’ Output (2)

πŸ“ Input Data

Class A (Red)
Class B (Blue)

Click to add points (Shift+Click for blue)

🎨 Decision Boundary

Predicts A
Predicts B

πŸ“ˆ Training Progress (Loss: ― | Accuracy: ―)

πŸ“š About This Demo

This interactive demonstration shows how a feedforward neural network learns to classify 2D data points through backpropagation. The network adjusts millions of parameters (weights and biases) to find the optimal decision boundary that separates different classes.

πŸ”‘ Key Concepts
  • Decision Boundary: The line or curve that the network learns to separate different classes
  • Activation Functions: Non-linear functions (ReLU, Tanh, Sigmoid) that allow networks to learn complex patterns
  • Learning Rate: Controls how much weights are adjusted during each training step
  • Loss Function: Cross-entropy loss measures how wrong the network's predictions are
  • Backpropagation: Algorithm that computes gradients and updates weights to minimize loss
  • Overfitting: When the network memorizes training data instead of learning general patterns
  • Regularization: Technique to prevent overfitting by penalizing large weights
πŸ’‘ Tips for Best Results
  • Start with simple datasets (Circle, Linear) before trying complex ones (Spiral, XOR)
  • More hidden layers and neurons can learn complex patterns but may overfit
  • Higher learning rates train faster but may overshoot the optimal solution
  • Add regularization if the network is overfitting (high training accuracy, poor generalization)
  • Try different activation functions - ReLU works well for most cases
  • Click on the canvas to add your own training points and see how the network adapts!