Giter Site home page Giter Site logo

pepe-lifestyle-advices's Introduction

Lifestyle advices based on the user transaction data

Solution produced during "Advice Hackathon" by Tinkoff as part of the "Hack Lab" course in Skotech, September 18-20, 2020

Team PEPEtoners: Ilya Borovik, Vladislav Kniazev, Vanessa Skliarova, Bulat Khabibullin, and Zakhar Pichugin

Solution

The solution is a lifestyle advices system which suggests a user a certain lifestyle (e.g. healthy food, social Life, responsible consumption, etc.) based on user transaction data in the previous months and user demographic profile.

  • The model trained on the transaction data learns to predict the categories in which a user is most likely to make transaction in the following months.
  • The model bases its predictions both on transaction-based data (merchant_type, transaction_type_desc, category, financial_account_type_cd, day (of month), weekday) and user profile information (gender_cd, age, marital_status_desc, children_cnt, region_flg)
  • The predicted probability distribution over can be used to trigger lifestyle advices to a user and monitor the performance of a user (if he/she follows advices or not)
  • Over the time, with new transactions, the system may update the user profile and issue new advices to the user.

The business side of the solution is shortly presented in the video.

Files

  • baseline_improved.ipynb
    • Improved baseline solution including feature enfineering and model training
  • category_recommendation.ipynb
    • The same solution pipeline used to predict 36 categories instead of 458 merchant types
  • demo.ipynb
    • Demonstration of how advices work.
    • Demo limitation: precomputed category recommendations for users. In the real system, the model accepts user transaction history and issues advice recommnedations directly.
  • category_scores.csv
    • Precomputed with a trained model category recommendations for each user, used in the demo
  • category_mappings.json
    • Dictionary map between categories and ids

Baseline improvements

  • Fixed bug with mappings (<UNK> token index)
  • Transactions sorted by date for each party
  • Features:
    • Transaction-based: merchant_type, transaction_type_desc, category, financial_account_type_cd, day (of month), weekday
    • User profile: gender_cd, age, marital_status_desc, children_cnt, region_flg
  • Tuning the TransformerEncoder model

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.