aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 7. Classification
Lesson 3 of 6 8 min · 147 words

Decision boundaries

Where the predicted class flips; linear for logistic regression.

A decision boundary is the set of inputs where the classifier is undecided — where the predicted class flips. Points on one side are labelled positive, on the other negative.

For logistic regression with threshold 0.5, the boundary is where , i.e. . That is a line in 2-D, a plane in 3-D, a hyperplane in general. is perpendicular to it, and the distance from the boundary relates to the model's confidence.

To get curved boundaries, add non-linear features (squares, products) — a linear boundary in the expanded feature space is curved in the original. Or use inherently non-linear models: kernel SVMs, trees, k-NN, neural networks.

Formula to remember

Binary cross-entropy

Negative log-likelihood of Bernoulli labels.

Quick check · +5 XP

Softmax outputs always…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser