All courses › Machine Learning and Data Analysis › Sigmoid and threshold
Sigmoid and threshold
Logistic regression turns any number into a probability between 0 and 1 with the sigmoid function. Above a chosen threshold the model says yes. Lowering the threshold finds more real cases, but also gives more false alarms.
Try it yourself
Threshold, precision and recall
the sigmoid function
decision with threshold t
Symbols
| probability | ||
| linear combination of the features | ||
| threshold, often 0.5 |
Example
and .
With threshold 0.5, is classified as yes.
The threshold is a choice, not a law of nature. Choose it from what the errors cost.
Practise classification and evaluation for free →
Part of Machine Learning and Data Analysis: Classification and evaluation.