Code Monkey home page Code Monkey logo

hid's Introduction

HID: Hierarchical Multiscale Representation Learning for Information Diffusion

If this code helps with your work, please cite:

Honglu Zhou, Shuyuan Xu, Zuohui Fu, Gerard de Melo, Yongfeng Zhang and Mubbasir Kapadia. HID: Hierarchical Multiscale Representation Learning for Information Diffusion. In International Joint Conference on Artificial Intelligence (IJCAI), 2020.

@inproceedings{zhou2020hid,
    title = {{HID: Hierarchical Multiscale Representation Learning for Information Diffusion}},
    author = {Zhou, Honglu and Xu, Shuyuan and Fu, Zuohui and de Melo, Gerard and Zhang, Yongfeng and Kapadia, Mubbasir},
    booktitle = {IJCAI},
    year = 2020
}

Dataset

Please go to data folder to find the download links of datasets used in the paper.

Code

  • hid.py is the framework.
  • utils.py has many general-purpose function including "upscaling" and "downscaling" (both are called by hid.py).
  • metrics.py has function implementation for various metrics.
  • test.py is the code to run testing and get the testing performance, by calling "test" function from specific model (e.g. CDK).

Run 'conda env create -f environment.yml' to create a conda environment that satisfies the package requirement. Check or modify the conda environment name in the first line of 'environment.yml'.

How to run

Hyper-parameters:

  • s: num_scales
  • p: coarse_portion
  • upscaling operator: upoperator

How to run HID without using upscaling and downscaling (just run baseline) for training and learning:

time python hid.py --corpus_path=./data/digg_500user/ --output_path=./data/digg_CDK_s0 --num_scales=0 --max_epochs=8000 --diffuser=CDK

See training log.
See testing log.

How to run HID with upscaling and downscaling for training and learning (e.g. s=2, p=1.2):

time python hid.py --corpus_path=./data/digg_500user/ --output_path=./data/digg_CDK_HAC_s2_p1dot2 --num_scales=2 --coarse_portion=1.2 --max_epochs=2666 --diffuser=CDK --upoperator=HAC

See training log.
See testing log.

How to check testing performance (first, modify config in test.py):

time python test.py

hid's People

Contributors

hongluzhou avatar

Watchers

James Cloos 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.