Machine Learning Concept

Logistic Regression

Slide the weight and threshold — the sigmoid bends, the decision boundary moves.

x P(y=1) boundary
weight w
1.2
threshold
6.5
bias b
−7.8
accuracy
7/10
classifier
off
tip: a bigger weight makes a sharper, more confident step
model.py