This project is part of Udacity Machine Learning Nanodegree projects.
We will create decision functions that attempt to predict survival outcomes from the 1912 Titanic disaster based on each passenger's features, such as sex and age. We will start with a simple algorithm and increase its complexity until we are able to accurately predict the outcomes for at least 80% of the passengers in the provided data.
This project uses the following software and Python libraries:
You will also need to have software installed to run and execute a Jupyter Notebook.
If you do not have Python installed yet, it is highly recommended that you install the Anaconda distribution of Python, which already has the above packages and more included.
This project contains two files:
titanic_survival_exploration.ipynb
: This is the main file where you find all the work on the project.titanic_data.csv
: The project dataset. Which is loaded in the notebook.
Template code is provided in the notebook Titanic-Survival-Prediction.ipynb
notebook file.
In a terminal or command window, navigate to the top-level project directory Titanic-Survival-Prediction/
(that contains this README) and run one of the following commands:
jupyter notebook titanic_survival_exploration.ipynb
or
ipython notebook titanic_survival_exploration.ipynb
This will open the Jupyter Notebook software and project file in your web browser.
The dataset used in this project is included as titanic_data.csv
. This dataset is provided by Udacity and contains the following attributes:
-
Features
pclass
: Passenger Class (1 = 1st; 2 = 2nd; 3 = 3rd)name
: Namesex
: Sexage
: Agesibsp
: Number of Siblings/Spouses Aboardparch
: Number of Parents/Children Aboardticket
: Ticket Numberfare
: Passenger Farecabin
: Cabinembarked
: Port of Embarkation (C = Cherbourg; Q = Queenstown; S = Southampton)
-
Target Variable
survival
: Survival (0 = No; 1 = Yes)