Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Training Systems using Python Statistical Modeling

You're reading from  Training Systems using Python Statistical Modeling

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781838823733
Pages 290 pages
Edition 1st Edition
Languages
Author (1):
Curtis Miller Curtis Miller
Profile icon Curtis Miller
Toc

Logistic regression

In this section, we will look at another linear classifierlogistic regression.

Logistic regression is also referred to as logit models. In this section, we will look at the basic idea of prediction using logistic regression and how to train and use these models. Our applications still involve the Titanic dataset. So, let's get right into it:

  1. First, we will import all the required functions:
  1. Then, we're going to load in the dataset:

This results in the following output:

Some further comments about logistic regressionthis is something that's not just common in machine learning. It's also a generally popular statistical model for regressions so that you can predict probabilities, so it's no wonder that this type of regression has been around for a long time. It has appeared in fields such as economics and medicine...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime