Skip to content

Edopramudya/Potofolio-Dibimbing---Titanic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Titanic Survival Prediction

This repository contains a machine learning project aimed at predicting the survival of passengers on the Titanic. Using the famous Titanic dataset, we applied a RandomForestClassifier to build a predictive model. The following steps were undertaken:

Project Overview

  • Data Preprocessing: Handled missing values, encoded categorical variables, and normalized data.
  • Model Training: Trained a RandomForestClassifier model using the training data.
  • Model Validation: Achieved an accuracy of 82.12% on the validation set.
  • Prediction: Made predictions on the test set, with a detailed analysis of the results.

Visualizations

  • Confusion Matrix: Showcases the accuracy of the model in predicting survival outcomes.
  • ROC Curve: Evaluates the performance of the classifier with an AUC score of 0.86.
  • Prediction Distribution: Illustrates the distribution of predicted survival outcomes in the test data.

Conclusion

The model performed well, providing valuable insights into which features were most influential in predicting survival. The project demonstrates the practical application of machine learning techniques to a classic problem in data science.

Files

  • train.csv: Training data used to build the model.
  • test.csv: Test data for making predictions.
  • titanic_model.ipynb: Jupyter notebook with the full code for data preprocessing, model training, and prediction.

How to Use

  • Clone the repository.
  • Install the required libraries.
  • Run the Jupyter notebook to replicate the analysis.

About

This repository contains a series of data analysis and visualization tasks performed on the Titanic dataset. The analysis includes data cleaning, visualization, and correlation analysis to explore the relationships between various features and survival rates of passengers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors