#1 India's Top IT Training Institute

×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
🧠 FREE · TRAINS IN YOUR BROWSER

Neural Network Playground: Train a Real Network and Watch It Learn

Pick a dataset and network shape, press Train, and see the decision boundary bend.

  • 🎛️ Layers, activation, rate
  • 🌀 4 classic datasets
  • 📉 Live loss curve

How to use the Neural Network Playground

  1. 1. Choose a datasetStart with Circle, then try XOR and Spiral.
  2. 2. Shape the networkSet hidden layers, activation, learning rate and extra features.
  3. 3. TrainPress Train to run 200 epochs; press again to keep going.

What is really happening

This is a genuine multilayer perceptron written in JavaScript. Each point passes forward through the layers: every neuron computes a weighted sum plus bias and applies the activation, and the output neuron uses a sigmoid to give a probability. The loss is binary cross-entropy, and backpropagation pushes gradients back through each layer so mini-batch gradient descent can update every weight.

The default network is 2-4-4-1: two inputs (x and y), two hidden layers of four neurons and one output. It has (2 × 4 + 4) + (4 × 4 + 4) + (4 × 1 + 1) = 37 trainable parameters, the number shown in the result. The orange and navy background shows what the network predicts at every spot.

Experiments

  • No hidden layer: clear the hidden layers box. The network can only draw a straight line, so the circle fails.
  • Add x², y², xy: with these features even a tiny network separates the circle, which shows the value of feature engineering.
  • XOR needs at least one hidden layer, the classic proof that single perceptrons are limited.
  • Spiral needs more neurons and patience; try 8, 8 with tanh.
  • Learning rate 3 often makes the loss jump around or blow up.

The same seed gives the same data and starting weights, so you can compare settings fairly. Training accuracy is measured on the training points. Inspired by the idea of the TensorFlow Playground, but built from scratch for this page. See a single neuron learn in the perceptron simulator.

Frequently asked questions

Is any data sent to a server?

No. The data is generated and the network trains entirely in your browser.

Why does accuracy differ between runs?

Different seeds give different data and starting weights. Keep the seed the same to compare settings.

Is the Neural Network Playground free?

Yes, the Neural Network Playground is free. The first time you start your first training run, you are asked for your name and WhatsApp number once. After that, this and every other Uncodemy tool opens straight away without the form.

More free tools

See all free tools