Skip to content

sernur/Implementing-basic-ML-methods-on-titanic

Repository files navigation

Implementing-basic-ML-methods-on-titanic

In this, Jupyter notebook, I used the titanic dataset in seaborn. I used basic and known machine learnin methods to predict the survival of passengers in titanic. In class we have done with decision tree and random forest when the data was scaled. So I decided to check does really help us? The answer, yes it does slightly. Table 1 shows ML models without scaled, Table 2 shows with ML models with scaling, Table 3 shows ML models with scaled data set and grid search.

Table of Contents

  1. Import Libraries

  2. Data Sets

  3. Data Analysis

  4. Data Prepocessing

    1. Handling Missing Values
    2. Converting categorical variables to numeric variables.
  5. Applying Machine Learning models to the data without scaling

    1. Decision Tree
    2. Logistic Regression
    3. Random Forest
    4. Stochastic Gradient Descent
    5. KNN
    6. Gaussian Naive Bayes
    7. Perceptron
    8. SVM
    9. Linear SVM
    10. Adaptive Boosting
    11. XGBoost
    12. Which Model is the best? Table 1
  6. Applying Machine Learning models to the data with scaling

    1. Decision Tree
    2. Logistic Regression
    3. Random Forest
    4. Stochastic Gradient Descent
    5. KNN
    6. Gaussian Naive Bayes
    7. Perceptron
    8. SVM
    9. Linear SVM
    10. Adaptive Boosting
    11. XGBoost
    12. Which Model is the best ? Table 2
  7. ROC Curve for RF and Logistic Regression

  8. Hyperparameter tuning with Grid Search and Randomized Search

  9. A few models with the grid search

    1. SVM
    2. Linear SVM
    3. Logistic Regression
    4. SGD
    5. Decision Tree
    6. Random Forest
    7. KNN
    8. Ada Boost
    9. XG Boost
    10. Cat Boost
    11. Light GBM
    12. Which Model is the best ? Table 3
  10. Using h2o AutoML package

  11. References

About

Here, we implement basic ML methods on titanic dataset.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors