/Titanic-disaster-analysis

The famous Titanic survival kaggle challenge.

Primary LanguagePythonMIT LicenseMIT


forthebadge made-with-python

Titanic-disaster-analysis

History

The sinking of the RMS Titanic is one of the most infamous shipwrecks in history. On April 15, 1912, during her maiden voyage, the Titanic sank after colliding with an iceberg, killing 1502 out of 2224 passengers and crew. This sensational tragedy shocked the international community and led to better safety regulations for ships. One of the reasons that the shipwreck led to such loss of life was that there were not enough lifeboats for the passengers and crew. Although there was some element of luck involved in surviving the sinking, some groups of people were more likely to survive than others, such as women, children, and the upper-class. In this challenge, we ask you to complete the analysis of what sorts of people were likely to survive. In particular, we ask you to apply the tools of machine learning to predict which passengers survived the tragedy.

Challenge link: https://www.kaggle.com/c/titanic/overview

WORKFLOW

  1. Create a python environment.
  2. Run the requirements.txt file to install all the dependencies.
  3. Make sure all the Files are in the same folders.
  4. The File "preprocess.py" is used for preprocessing the dataset.
  5. The File "model.py" has the random forest implementation.
  6. The pickle file "RF_model_final1.sav" is the saved model of the implementation.

ACCURACY 92.5%


FEATURE IMPORTANCE

MIT license