Coder Social home page Coder Social logo

kaggle-porto-seguro's Introduction

Requirements

older or newer version of below packages should theoretically work fine

python 2.7

numpy 1.13.3

pandas 0.20.3

sklearn 0.19.1

keras 2.1.1

tensorflow 1.4.0

xgboost 0.6

lightgbm 2.0.10

How to reproduce

Simple solution (recommended)

Put unzipped data in input

Generate a simple solution that is good enough for 2nd place (~0.2938 on private LB)

cd code

python fea_eng0.py

python nn_model290.py to get a nn model that scores 0.290X

python gbm_model291.py to get a gbm model that scores 0.291X

python simple_average.py and then you can find the submission file at ../model/simple_average.csv

You can reproduce this solution in a few hours.

Exact solution (Optional)

Although not recommended but you can also reproduce the exact same solution we submitted (0.29413 on private LB).

you can follow these steps below, in addition to the simple solution

cd ../code_for_exact_solution/
python keras3.py
python keras6.py
python keras7.py
python lightgbm1.py
python lightgbm5.py
python lightgbm6.py
python lightgbm7.py
python lightgbm8.py
python logistic1.py
python xgb0.py
python xgb_linear0.py
python rank_average.py

It can take up to 2 days to generate the exact solution which only has 0.0003 improvement over the simple one

kaggle-porto-seguro's People

Contributors

xiaozhouwang 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.