An open API service indexing awesome lists of open source software.

https://github.com/jonad/titanic_survival

Basic decision tree model for Titanic dataset. Predict who will survive.
https://github.com/jonad/titanic_survival

jupyter-notebook matplotlib numpy pandas python3 titanic-survival-prediction

Last synced: 4 months ago
JSON representation

Basic decision tree model for Titanic dataset. Predict who will survive.

Awesome Lists containing this project

README

        

## Project: Titanic Survival Exploration

### Install

This project requires **Python 2.7** and the following Python libraries installed:

- [NumPy](http://www.numpy.org/)
- [Pandas](http://pandas.pydata.org)
- [matplotlib](http://matplotlib.org/)
- [scikit-learn](http://scikit-learn.org/stable/)
- [Jupyter Notebook](http://ipython.org/notebook.html)

### Run

Navigate to the top-level project directory `titanic_survival_exploration/` and run one of the following commands:

```bash
jupyter notebook titanic_survival_exploration.ipynb
```
or
```bash
ipython notebook titanic_survival_exploration.ipynb
```

### Data

The dataset used in this project is included as `titanic_data.csv`.

**Features**
- `pclass` : Passenger Class (1 = 1st; 2 = 2nd; 3 = 3rd)
- `name` : Name
- `sex` : Sex
- `age` : Age
- `sibsp` : Number of Siblings/Spouses Aboard
- `parch` : Number of Parents/Children Aboard
- `ticket` : Ticket Number
- `fare` : Passenger Fare
- `cabin` : Cabin
- `embarked` : Port of Embarkation (C = Cherbourg; Q = Queenstown; S = Southampton)

**Target Variable**
- `survival` : Survival (0 = No; 1 = Yes)