Skip to content

Using random forest to predict Titanic passenger survival.

Notifications You must be signed in to change notification settings

tebateman/Titanic-Sink-or-Swim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Titanic-Sink-or-Swim

This repo is a response to the classic Kaggle Titanic challenge - https://www.kaggle.com/c/titanic/data.

The objective of the challenge is to predict the passengers that survived and died based on the available variables (e.g. age, class).

The following approach achieved an accuracy score of 0.77033:

#Cleaning data - imputed age using median and embarked using mode #One-hot encoding - dummy variables for all categorical variables #Feature engineering - created age groups, salutation, famiy size features #Model - trained random forest model (scikitlearn implementation)

About

Using random forest to predict Titanic passenger survival.

https://www.kaggle.com/c/titanic/data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published