GithubHelp home page GithubHelp logo

kaggle_foursquare's Introduction

Foursquare Location Matching

Authors : Youri Matiounine, Vincent Schuler, Théo Viel

4th place solution for the Foursquare Location Matching competition

Solution Overview

The solution write-up is available here

The solution shared here contain's @theo's pipeline. It is slightly more complicated than the actual pipeline, but somehow runs out of memory during inference. The submitted model does not use features from fe_theo.py, and uses less candidates.

Data

Using the repository

Notebooks

Notebooks contain our training pipeline, they need to be run in the following order :

  • Cleaning.ipynb : Processes the data
  • Matching.ipynb : Creates pairs
  • Level 1.ipynb : Creates features for the level 1 model
  • Classification.ipynb : Using LEVEL = 1, trains the prefiltering level 1 model
  • Level 2.ipynb : Creates features for the level 2 model
  • Classification.ipynb : Using LEVEL = 2, trains the final model

Code structure

src
├── inference
│   └── main.py             # Boosting inference functions
├── model_zoo
│   ├── catboost.py         # To train a Catboost model
│   ├── lgbm.py             # To train a LightGBM model
│   └── xgb.py              # To train a XGBoost model
├── training           
│   └── main_boosting.py    # Boosting training functions
├── utils 
│   ├── logger.py           # Logging utils
│   └── plot.py             # Plotting utils
├── cleaning.py             # Functions for data cleaning           
├── dtypes.py               # Handling pandas dataframe dtypes
├── fe_theo.py              # Theo's features
├── fe.py                   # Youri & Vincent's features
├── matching.py             # Functions for pairs matching
├── params.py               # Parameters
├── pp.py                   # Post-processing utils
└── ressources.py           # Ressources used for cleaning / matching

kaggle_foursquare's People

Contributors

theoviel avatar

Stargazers

Gunja_AIML avatar  avatar ds wook avatar  avatar Turbo avatar Sanyam Bhutani avatar yanqiangmiffy avatar <^..^> avatar bilzard avatar Yodai Kishimoto avatar Shitty Girl avatar Udbhav Bamba avatar mzl9039@163.com avatar

Watchers

 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.