All demos

Neural Net Basics

Neural net training
Editable on/off network

Build a tiny neural network by hand

Use the editable weights and biases to make one network correctly handle all four Cereal and Salsa combinations. The diagram lets you see values travel along each connection.

Try this
  1. Toggle Cereal and Salsa to test one input case.
  2. Change weights or biases directly in the network.
  3. Use the truth table to find and repair a failed case.

Model Goal

Fill the weights

Build a small neural network model that follows these rules:

  • Accept Cereal.
  • Accept Salsa.
  • Reject Cereal and Salsa together.
  • Reject when neither input is selected.

Change the weights in the diagram and test with the Cereal and Salsa inputs. The table below shows the results for the current weights, with a description of why the selected row produced its output.

Editable Network

Weights in place
Inputs Outputs Cereal: 0 Salsa: 0 h1 sum 0, out 0 h2 sum 0, out 0 Accept score 0 Reject score 0

Truth Table

0 of 4 correct

Click a row or toggle an input box to show its signals in the network. Edit the weights until every row passes.

Cereal Salsa Target Network says Check

Selected Row