GithubHelp home page GithubHelp logo

allstate_kaggle's Introduction

###These are my scripts used for the Allstate Challenge on "How severe is an insurance claim?"

This is my first (serious) attempt at Kaggle and i manage to get 46/3055 in the private leaderboard with this submission. You can find my Kaggle profile here.

There is a seperate blog post avaliable here, which talks about what i have learnt and some pitfalls.

The order of folders are as follows:

Hyperopt Scripts and Results are also included here.


Data_prep

  • Fork this Repo and make a directory named input.
  • Download the train & test set from here and unzip them.
  • Run the scripts power2.py , power3.py and fourm_1106_prep.py
  • You should have 3 additional files for each script.

Xgboost

The outputs and params are available in the notebook. Note that not all outputs are used in the end for second level modelling. Refer to Second level modelling.


Keras (Neural Networks)

The motivation is from this script which is in this github repo found here.

I used 4 different sets of parameters.

  • The one found in the forum.
  • Same Model with a different seed.
  • By changing the second layer from 200 to 250 nodes.
  • Training the same model without using log transform.

The outputs can be found in the csv's in the keras folder.


Extra Trees And Random Forest

  • Everything is here

Weighted Average

  • Everything is here
  • Submission file allstate1118.34514548.csv which would be ranked 102 in the private leaderboard (top 5%).

Second Level Modelling (Stacking)

allstate_kaggle's People

Contributors

freedom89 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.