- Logistic Regression
Understand how to apply logistic regression as a supervised classification algorithm using scikit-learn to predict user actions. Explore probability-based predictions, model evaluation with accuracy and ROC scores, and use logistic regression as a foundation for building scalable machine learning pipelines.
We'll cover the following...
Logistic regression is a supervised classification algorithm that is useful for predicting which users are likely to perform an action, such as purchasing a product. Using scikit-learn, the process is similar to fitting a linear regression model.
Example
The main differences from the prior script are the dataset being used, the model object instantiated (LogisticRegression), and the predict_proba function used to calculate error metrics.
. This function predicts a probability in the continuous range of ...