Home » Uncategorized

Logistic Regression using python

This article was posted by Arpan Gupta (Indian Institute of Technology).

2808319917

Let’s learn from a precise demo on Fitting Logistic Regression on Titanic Data Set for Machine Learning

Description:On April 15, 1912, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This tragedy has led to better safety regulations for ships.

Machine learning Problem : To predict which passengers survived in this tragedy based on the data given

What we will do :

  • Basic cleaning for missing values in train and test data set
  • Five-fold cross-validation
  • Model used is Logistic Regression
  • Predict for test data set

Let’s import the library.

To see the algorithms, click here

Top DSC Resources

Follow us on Twitter: @DataScienceCtrl | @AnalyticBridge