• Stars
    star
    858
  • Rank 53,134 (Top 2 %)
  • Language
    Jupyter Notebook
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tutorial for Kaggle's Titanic: Machine Learning from Disaster competition. Demonstrates basic data munging, analysis, and visualization techniques. Shows examples of supervised machine learning techniques.

Kaggle-titanic

This is a tutorial in an IPython Notebook for the Kaggle competition, Titanic Machine Learning From Disaster. The goal of this repository is to provide an example of a competitive analysis for those interested in getting into the field of data analytics or using python for Kaggle's Data Science competitions .

Quick Start: View a static version of the notebook in the comfort of your own web browser.

Installation:

To run this notebook interactively:

  1. Download this repository in a zip file by clicking on this link or execute this from the terminal: git clone https://github.com/agconti/kaggle-titanic.git
  2. Install virtualenv.
  3. Navigate to the directory where you unzipped or cloned the repo and create a virtual environment with virtualenv env.
  4. Activate the environment with source env/bin/activate
  5. Install the required dependencies with pip install -r requirements.txt.
  6. Execute ipython notebook from the command line or terminal.
  7. Click on Titanic.ipynb on the IPython Notebook dasboard and enjoy!
  8. When you're done deactivate the virtual environment with deactivate.

Dependencies:

Kaggle Competition | Titanic Machine Learning from Disaster

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 contest, 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.

This Kaggle Getting Started Competition provides an ideal starting place for people who may not have a lot of experience in data science and machine learning."

From the competition homepage.

Goal for this Notebook:

Show a simple example of an analysis of the Titanic disaster in Python using a full complement of PyData utilities. This is aimed for those looking to get into the field or those who are already in the field and looking to see an example of an analysis done with Python.

This Notebook will show basic examples of:

Data Handling

  • Importing Data with Pandas
  • Cleaning Data
  • Exploring Data through Visualizations with Matplotlib

Data Analysis

  • Supervised Machine learning Techniques: + Logit Regression Model + Plotting results + Support Vector Machine (SVM) using 3 kernels + Basic Random Forest + Plotting results

Valuation of the Analysis

  • K-folds cross validation to valuate results locally
  • Output the results from the IPython Notebook to Kaggle

Benchmark Scripts

To find the basic scripts for the competition benchmarks look in the "Python Examples" folder. These scripts are based on the originals provided by Astro Dave but have been reworked so that they are easier to understand for new comers.

Competition Website: http://www.kaggle.com/c/titanic-gettingStarted

More Repositories

1

cookiecutter-django-rest

Build best practiced apis fast with Python3
Python
1,542
star
2

KaggleAux

A collection of statistical tools to aid Data Science competitors in Kaggle Competitions.
Python
63
star
3

socket.io.tests

A basic example of testing node apps that use socket.io using mocha and chai
JavaScript
62
star
4

piedpiper-web

A sample scaffolded project from https://github.com/agconti/cookiecutter-django-rest
Python
49
star
5

trading

This repository contains real trading examples explained and modeled in IPython Notebooks to generate discussion, feasible trading examples, and potential profit for the common man.
43
star
6

cookiecutter-es6-boilerplate

A cookiecutter for bleeding edge front end projects.
JavaScript
20
star
7

django-unique-upload

A django utility that creates unique file names for uploaded files via uuids.
Python
17
star
8

BlueBook

This IPython Notebook contains a quantitative pricing model created for Fast Iron in the Kaggle competition 'Blue Book for Bulldozers'. The model predicts the sale price of a particular piece of heavy equipment so that Fast Iron can create a 'Blue Book' to enable customers to valuate their heavy equipment fleet at auction. Here python is used as a medium to apply supervised and unsupervised machine learning techniques to explain 88.90% of the variance observed in the training set and score an RMSLE of 0.745 when predicting values on the test set. In this competition 590 data scientists created predictive models based on a 'training dataset', provided by Fast Iron, and then used those models to predict sale prices on a 'test set' to compete for a $10,000 dollar award for the team or individual with the most accurate model. The model and methods used for my entry, which scored in the upper 20%, is shown in BlueBook.ipynb.
9
star
9

US_Dollar_Vehicle_Currency

An economic analysis of US Dollar is NOT always the vehicle currency. The project will explore under what circumstances is another currency of denomination chosen? If not the US Dollar then what currency is being used?
JavaScript
6
star
10

lime

An API for extracting tick data for US equities for ad-hoc analysis in Python with Pandas.
Python
5
star
11

express-jwt-token

A lean and configurable implementation of jwt auth for Express.js
JavaScript
4
star
12

intro-to-rxjs

A visual introduction in the basic concepts of Rx.js
CSS
3
star
13

shopping_cart

A django shopping cart app.
Python
3
star
14

wait-for-postgres

Easily wait for postgres to be ready
Python
3
star
15

scalable-twitter-search

An example architecture of how search at Twitter's scale.
JavaScript
2
star
16

file-upload

An example app demoing file uploads in node.js
JavaScript
2
star
17

downloadit

A simple utility for downloading files by url.
JavaScript
2
star
18

angular2-quickstart

Clone this repo to quickly setup an angular2 app
JavaScript
2
star
19

space-shooter

A simple top down, space themed, arcade style shooter in Unity
C#
2
star
20

tv

less of a slide show, more like a tv.
JavaScript
2
star
21

gulp-clojure

A gulp plugin for compiling ClojureScript to JavaScript.
JavaScript
2
star
22

Django-IPython-Tutorial

An interactive tutorial that guides you through creating your first Django project. This notebook goes along with the offical guide from the Django project's website. This tutorial will take you through the process of creating a basic poll application.
Python
2
star
23

angualr2-heroes

The hero editor tutorial
TypeScript
1
star
24

njode

An example app for running django and njode in harmony.
Python
1
star
25

intro-webgl

A playground for webgl shaders.
TypeScript
1
star
26

gaze

A example of using the Cardboard sdk's gaze interaction.
C#
1
star
27

scala-school

Scala
1
star
28

chat

basic socket.io example.
JavaScript
1
star
29

next-js-css-modules-unable-to-use--global-with-css-modules

JavaScript
1
star
30

how-docker-and-docker-compose-env-vars-work

Shell
1
star
31

agconti.com

My website.
CSS
1
star
32

middleman

JavaScript
1
star
33

angular-2-hello-world

Hello world with Angular 2
JavaScript
1
star
34

how-package-lock-works

As of npm v5.1.0, dependencies versions in package.json *override* the values specified in package-lock.json
Shell
1
star
35

next-js-unable-to-read-post-css-config

JavaScript
1
star
36

angular-2-gravatar-example

A remake of the classic gravatar profile picture example with ES6 and angular 2
JavaScript
1
star
37

clock

a minimalistic clock in d3.js
CSS
1
star
38

flight-delays

Real time flight delay's in the US via Rx.js
JavaScript
1
star
39

Shopify-Django

This repository contains Shopify's Django App example updated for Django 1.5. Currenly there are several pull requests over a year old to update the official Shopify Repo. Since they have not been fulfilled I updated the example myself.
Python
1
star