Giter Club home page Giter Club logo

crowdai-counterfactual's Introduction

This repository contain code for 2nd place winning solution of Criteo Ad Placement Challenge hosted by crowdAI.

How to build the solution

  1. cd prepare_dataset
  2. Set paths in config.py (warning: around 130 GB of free disk space is needed)
  3. Run build.sh (this takes about 2h on my setup)
  4. After dataset processing, go back, cd ..
  5. Start jupyter notebook
  6. Open and execute every cell in make_batches.ipynb
  7. Open and execute every cell in learn_model.ipynb (in parallel with learning you can start tensorboard to see progress)
  8. File {TMP_DIR}/submit_scaled.gz will produce IPS: 54.556 on the leaderboard.

Some details about the approach you can find in docs folder.

Dependencies

  • pypy (5.1.2)
  • python (3.5.2)
  • notebook (5.2.1)
  • numpy (1.13.3)
  • scipy (1.0.0)
  • tensorflow-gpu (1.4.0)
  • tensorflow-tensorboard (0.4.0rc2)
  • tqdm (4.19.4)

Hardware requirements

This code was executed on machine with 64G RAM, i7-6800K core and NVIDIA GTX 1080 running under Linux Mint 18.1 (not tested, but should run without GPU and with less RAM).

Promotion

If you want to learn useful ML techniques and competition specific tricks, check out this course from experienced kagglers like me and KazAnova.

crowdai-counterfactual's People

Contributors

geffy avatar

Stargazers

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