In this section, we will look at logistic regression, which is the first hill-climbing algorithm that we'll cover, and we will have a brief recap of linear regression. We will also look at how logistic regression differs both mathematically and conceptually. Finally, we will learn the core algorithm and explain how it makes predictions.
Logistic regression models
The concept
Logistic regression is conceptually the inverse of linear regression. What if, rather than a real value, we want a discrete value or a class? We have already seen one example of this type of question early on when we wanted to predict whether or not an email was spam. So, with logistic regression, rather than predicting a real value, we can predict...