GithubHelp home page GithubHelp logo

sekhar2017 / clubmahindradataolympics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nagabhushans/clubmahindradataolympics

0.0 1.0 0.0 16 KB

Solution for Club Mahindra Data Olympics Hackathon

Jupyter Notebook 100.00%

clubmahindradataolympics's Introduction

ClubMahindraDataOlympics

Solution for Club Mahindra Data Olympics Hackathon

1. Feature Extraction and Engineering

Generated 5 different sets of features:

a. 45 Features with features extracted from dates, total_pax, number of childrens and adults.

b. Added more date based features to get 75 features.

c. OneHotEncoded the above features to obtain a new data with 252 features

d. Added more features obtained from memberid based on linking each feature to memberid and extracting the relations

e. Obtained a fresh set of pandas category features along with usual numerical features to be used for training lightgbm and catboost by passing the cat features explicitly, so that the underlying algorithms handle the cat features on their own.

2. Cross Validation and Parameter Tuning

Used groupfold on the memberid so that no two folds contain same memberid instances. Used 5 fold and 10 fold cv to hyperparameter tune various first level models in the final stacked model. Also used the same cv to tune 2nd level models.

3. Stacking Model

a. First Layer Models

The first level models were trained on the 5 different dataset features. Used various first level models including RF, XGBoost, LightGBM, CatBoost, AdaBoost, GradientBoosting, SGDRegressor, MLPRegressor, etc.

b. Second Layer Models

Used three models in the second level including XGBoost, LightGBM and SGDRegressor.

c. Thirst Layer Model:

The final layer was a simple averaging of the predictions of the second layer.

4. Submission

To replicate the submission create three folders in the working directory, namely, "freshPickles", "rsp" and "submission". Execute the jupyter notebooks featureEngineering1.ipynb, featureEngineering2.ipynb and featureEngineering3.ipynb. Finally execute the notebook finalStacking.ipynb.

clubmahindradataolympics's People

Contributors

nagabhushans avatar

Watchers

James Cloos 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.