Git Product home page Git Product logo

demographic-prediction's Introduction

ETNA : Embedding Transformation Network with Attention

This is our Pytorch implementation for the paper:

Raehyun Kim and Hyunjae Kim (2019). Predicting Multiple Demographic Attributes with Task Specific Embedding Transformation and Attention Network. In Proceedings of SIAM International Conference on Data Mining (SDM'19)

Please cite our paper if you use the code or datasets.

The code is tested under a Linux desktop (w/ TiTan X - Pascal) with Pytorch 1.0.0. and Python 3.

MVP (Multi-Vendor loyalty Program) Dataset

We provide dataset for demographic prediction. You can find our raw dataset in (data/raw).

MVP dataset consists of three files. [Company_info, User_info, Purchase_history]

  • company_info.csv : Company's industrial categories are included in company info.
  • user_info.csv : User's demographic information (processed as class).
  • purchase_history.json : Each user's purchasing history.

Model Training and Evaluation

We have two type of task settings. (New user and partial prediction)

And user should specify observation ratio for partial prediction task.

To train our model on partial task with 50% of observation ratio (with default hyper-parameters):

python main.py --model_type ETNA --task_type partial50 

Experiments on other observed ratios are also available as follows:

python main.py --model_type ETNA --task_type partial10 

If you want to test our model on validation set for searching your own hyper-parameters, use '--do-validation' argument.

Note that we do not provide validation set, so you should use some portion of the training set as validation set.

demographic-prediction's People

Contributors

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