Code Monkey home page Code Monkey logo

deep-survival-analysis's Introduction

DEep Survival Analysis (DESA)

A tensorflow implementation of DESA model. This is the experiment code for the KDD'18 submitted paper "Deep Survival Analysis for Fine-grained Bid Landscape Forecasting in Real-time Bidding Advertising". If you have any questions, please feel free to contact Kan Ren ([email protected]), Jiarui Qin ([email protected]) and Lei Zheng([email protected]).

Our model is DESA model. The baseline models are COX-NN, MM, STM, MTLSA, RNN and DNN. Among the baseline implementations, we forked the code of STM(it also has the implementation of MM) and MTLSA. Of course, we also made some midifications on the two projects to fit them for our experiments, To get the modified code, you can click MTLSA @ 712e3bc and STM_MM @ 2d57f03 to get them. Many thanks to the authors of STM/MM and MTLSA. Other baselines' implementations are in python directory.

Data Preparation

We have uploaded a tiny data sample for training and evaluation. The full dataset for this project can be download from this link. After download please replace the sample data in data/ folder with the full data files.

Installation and Running

TensorFlow(>=1.3) and dependant packages (e.g., numpy, sklearn and matplotlib) should be pre-installed before running the code.

After package installation, you can simple run the code in python directory with the demo tiny dataset(sampled from campaign 2259). The outputs of the code are in `python/output' directory.

python3 coxnn.py [campaign] [learn_rate] [batch_size] [hidden_layer_size] [threshold] [w_k] [w_lambda] #for COX-NN
python RNN.py 0.0001      # for RNN
python DNN.py 0.0001      # for DNN
python DESA.py 0.0001     # for DESA

We have set default hyperparameter in the model implementation. So the parameter arguments are optional for running the code.

The result will be printed on the screen with the format: Camp, Train/Test, Step, Cross Entropy, AUC, ANLP, Total Loss, batch size, hidden state size, learing rate, anlp learning rate, alpha, beta.

deep-survival-analysis's People

Contributors

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