July 2017
Intermediate to advanced
382 pages
9h 13m
English
Despite its name, logistic regression can actually be used as a model for classification. It uses a logistic function (or sigmoid) to convert any real-valued input x into a predicted output value ŷ that takes values between 0 and 1, as shown in the following figure:

Rounding ŷ to the nearest integer effectively classifies the input as belonging either to class 0 or 1.
Of course, most often, our problems have more than one input or feature value, x. For example, the Iris dataset provides a total of four features. For the sake of simplicity, let's focus here on the first two features, sepal ...
Read now
Unlock full access