MPE StudioMath of Planet Earth
Machine Learning Toolkit · 15

The Role of Weights and Biases

Scaling inputs and shifting thresholds

Weights determine how strongly each feature influences a neuron, while the bias moves the activation threshold independently of the inputs.

watchone idea
→
manipulateone example
→
leave withone intuition

The essential idea: without bias, every linear decision boundary is forced through the origin.

Watch the concept

One Concept · One Example

The Role of Weights and Biases video thumbnail▶

The Role of Weights and Biases

Presented by Charlotte Moser

Watch on YouTube ↗

What to notice

The idea in 30 seconds

Rotate with weights, translate with bias

Perceptron score

A step activation classifies the sign of a weighted score.

y=1ifw1x1+w2x2+b≥0

Decision boundary

The zero-score line separates the two output classes.

w1x1+w2x2+b=0
Explore

Why the exam classifier needs a bias

Reproduce the two cases from the slides with fixed weights. Compare the prepared student and the no-preparation student as the bias shifts the pass threshold.

Perceptron from the slidesscore = 1·x₁ + 0.5·x₂ + bPass if score ≥ 0 · Fail otherwise
prepared (0.8, 0.6)no preparation (0, 0)PASSFAIL
Prepared studentscore 0.4PASS
No preparationscore -0.7FAIL
KEY TAKEAWAY

Weights rotate and scale a boundary; bias shifts it so the model is not anchored to the origin.