Coder Social home page Coder Social logo

wanghuimu / ldg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uoguelph-mlrg/ldg

1.0 1.0 0.0 29.17 MB

PyTorch code for "Learning Temporal Attention in Dynamic Graphs with Bilinear Interactions"

Home Page: https://arxiv.org/abs/1909.10367

License: Other

Python 100.00%

ldg's Introduction

LDG

PyTorch code for our paper on Learning Temporal Attention in Dynamic Graphs with Bilinear Interactions.

Data

All data are uploaded to this repo. The original data can be accessed here.

Before running the code, unpack Proximity.csv.bz2, e.g. by running bzip2 -d Proximity.csv.bz2 inside the SocialEvolution folder.

Examples

Running the baseline DyRep model [1]:

python main.py --log_interval 300 --epochs 5 --data_dir ./SocialEvolution/.

Running our latent dynamic graph (LDG) model with a learned graph, sparse prior and biliear interactions:

python main.py --log_interval 300 --epochs 5 --data_dir ./SocialEvolution/ --encoder mlp --bilinear --sparse

Note that our default option is to filter Proximity events by their probability: --prob 0.8. In the DyRep paper, they use all events, i.e. --prob 0.8. When we compare results in our paper, we use the same --prob 0.8 for all methods.

If you make use of this code, we appreciate it if you can cite our paper as follows:

@ARTICLE{Knyazev2019-zj,
  title         = "Learning Temporal Attention in Dynamic Graphs with Bilinear Interactions",
  author        = "Knyazev, Boris and Augusta, Carolyn and Taylor, Graham W",
  month         =  sep,
  year          =  2019,
  archivePrefix = "arXiv",
  primaryClass  = "stat.ML",
  eprint        = "1909.10367"
}

[1] Rakshit Trivedi, Mehrdad Farajtabar, Prasenjeet Biswal, and Hongyuan Zha. DyRep: Learning representations over dynamic graphs. In ICLR, 2019

ldg's People

Contributors

bknyaz avatar gwtaylor avatar

Stargazers

 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.