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.
- Host: GitHub
- URL: https://github.com/jonad/titanic_survival
- Owner: jonad
- Created: 2017-01-04T17:29:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T20:30:43.000Z (over 7 years ago)
- Last Synced: 2024-12-27T12:09:38.040Z (6 months ago)
- Topics: jupyter-notebook, matplotlib, numpy, pandas, python3, titanic-survival-prediction
- Language: Jupyter Notebook
- Homepage:
- Size: 325 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)