From the course: Machine Learning with Scikit-Learn
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Logistic regression using scikit-learn - scikit-learn Tutorial
From the course: Machine Learning with Scikit-Learn
Logistic regression using scikit-learn
- [Instructor] How do you create a logistic regression model using scikit-learn? The first thing that you need to know is that despite the name logistic regression contain the word regression, logistic regression is actually a model user classification. Classification models can be used for tasks like classifying flower species or image recognition. All of this of course depends on the availability and quality of your data. Logistic regression has some advantages, model training and predictions are relatively fast, additionally, no tuning is usually needed for the model. Finally, it can perform well with a small number of observations. In this video, I'll share with you how you can create a logistic regression model for binary classification. The first thing that you need to do is import the libraries that you want to use. In this notebook, it's Matplotlib, numpy, seaborn, pandas, as well as train_test_split,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
What is supervised learning?54s
-
(Locked)
How to format data for scikit-learn1m 55s
-
(Locked)
Linear regression using scikit-learn4m 32s
-
(Locked)
Train test split1m 53s
-
(Locked)
Logistic regression using scikit-learn3m 55s
-
(Locked)
Logistic regression for multiclass classification3m 36s
-
Decision trees using scikit-learn3m 9s
-
(Locked)
How to visualize decision trees using Matplotlib2m 5s
-
(Locked)
Bagged trees using scikit-learn2m
-
(Locked)
Random forests using scikit-learn2m 41s
-
(Locked)
Which machine learning model should you use?1m 23s
-
-
-