From the course: Supervised Learning Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Creating a logistic regression model - Python Tutorial
From the course: Supervised Learning Essential Training
Creating a logistic regression model
- [instructor} To create our logistic regression model. We'll use some data on cryotherapy patients. Cryotherapy is the use of low temperature in medical therapy. Our dataset for this model includes demographic data about patients, like their sex and age as well as the time they had cryotherapy, the number and type of warts they had, the size of the area that treatment was applied to. And if the cryotherapy treatment was successful or not. This data comes from a study that measured the effectiveness of cryotherapy compared to immunotherapy. So now I am in exercise file, 02-05-begin. Let's start by loading in our packages. And then we'll read in our cryotherapy data. So have a look at the first couple of rows of this data using the head function. And this looks about what we would expect it to look like. A couple of those demographic features and then some interesting data about the actual treatments. Let's use the…
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
-
-
-
-
Defining logistic and linear regression2m 51s
-
(Locked)
Steps to prepare data for modeling4m 31s
-
(Locked)
Checking your dataset for assumptions7m 18s
-
(Locked)
Creating a linear regression model2m 51s
-
(Locked)
Creating a logistic regression model4m 28s
-
(Locked)
Evaluating regression model predictions2m 40s
-
-
-
-
-