April 2020
Intermediate to advanced
536 pages
16h 55m
English
This chapter covers
In this chapter, I’m going to add a new classification algorithm to your toolbox: logistic regression. Just like the k-nearest neighbors algorithm you learned about in the previous chapter, logistic regression is a supervised learning method that predicts class membership. Logistic regression relies on the equation of a straight line and produces models that are very easy to interpret and communicate.
Logistic regression can handle continuous (without discrete categories) and categorical (with discrete categories) predictor variables. In its ...