Git Product home page Git Product logo

kaggle_td_121st_solution's Introduction

Kaggle TalkingData AdTracking Fraud Detection Challenge 121st's solution (silver medal, top 4%)

About CV:

We choosed Day6 16:00:00 to Day7 15:59:59 as the 1st day;
We choosed Day7 16:00:00 to Day8 15:59:59 as the 2nd day;
We choosed Day8 16:00:00 to Day9 15:59:59 as the 3rd day;
We added 8 hours to time, thus transformed a day from 16:00:00-15:59:59 into 0:00:00-23:59:59. As a result, we now have 3 complete days. Let's call them tr_7, tr_8, tr_9.
Then we used tr_8 for training, and tr_9 for validation, since we had limited RAM, and we would like to use some features like conversion rate.
After we trained a model with tr_8 for training, and tr_9 for validation, we finished tuning, and we got the best iteration round. Then, we used tr_8+tr_9 for training without any validation. We used the same parameters, and set the num_round to 1.1ร— the best iteration round we mentioned before. We would have a new model(train on tr_8+tr_9), and we used this model to predict the test data.

About Feature Engineering:

"Next click" was absolutely the magic feature! Besides, we used normal aggregate functions such as count or nunique.
In addtion, we used conversion rate, we calculated the rate on tr_7, and merged it on tr_8; calculated on tr_8, and merged it on tr_9; calculated on tr_9, and merged it on test.
Moreover, numpy can be very useful and way faster than pandas, especially in groupby functions.

About Model:

We only used an LGB single model. We tried rank_avg with other models, but it didn't work... We could not figure out the reason.

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.