Skip to content

HamzaSidhu786/Predicting-Titanic-Survival-Traditional-Machine-Learning-vs.-Deep-Learning

Repository files navigation

Predicting Titanic Survival: Traditional Machine Learning vs. Deep Learning

Overview

In this project, we explore the classic Titanic dataset to predict passenger survival using both traditional machine-learning techniques and deep-learning models. We begin with data preprocessing and train a Gaussian Naive Bayes (GaussianNB) model. Then, we delve into feature engineering and data normalization before introducing the basics of deep learning using Keras. Finally, we compare the accuracy of the traditional machine learning approach with the deep learning model.

Data Preprocessing

We start by cleaning and preparing the dataset for analysis. This involves handling missing values, encoding categorical variables, and splitting the data into training and testing sets.

Traditional Machine Learning

Gaussian Naive Bayes

We train a Gaussian Naive Bayes classifier on the preprocessed data to predict survival probabilities based on various features.

Feature Engineering

We explore techniques to enhance model performance by creating or transforming existing features.

Data Normalization

Normalization ensures that all features have a similar scale, which aids in model convergence and performance.

Deep Learning with Keras

Introduction to Deep Learning

We provide a brief overview of deep learning concepts and the Keras library, emphasizing its simplicity and flexibility in building neural networks.

Model Training

Using Keras, we design a basic deep-learning model architecture and train it on the Titanic dataset.

Model Comparison

We evaluate the performance of the GaussianNB model and the deep learning model using appropriate evaluation metrics such as accuracy, precision, recall, and F1-score.

Conclusion

We conclude by discussing the strengths and limitations of both approaches and provide insights into when to choose traditional machine learning over deep learning and vice versa.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published