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

Creating a logistic regression model - Python Tutorial

From the course: Supervised Learning Essential Training

Start my 1-month free trial

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…

Contents