Ch 1: Single Neuron / Perceptron
One unit, two weights, and the birth of a decision
A perceptron (here: one dense neuron) computes
where σ is the sigmoid. It draws a linear decision boundary.
XOR is not linearly separable — a single neuron will struggle.
AND and OR are linearly separable — the neuron can succeed.
Immediate Mode tip: change lr or epochs and train again.
Watch the loss curve and the glowing neuron activations.
Challenges
xor: 4 points plotted. Not trained yet — press Train to draw the decision boundary.
Not trained yet
The architecture comes from your DSL. Weights and activations appear once you train.
No curves yet
Loss and accuracy are recorded per epoch. Press Train.
Welcome to NeuralBASIC. I'm your Socratic Tutor — I won't hand you full solutions. Predict, train, observe, explain. Ready for Chapter 1?