All Projects β†’ supriya-gdptl β†’ STWalk

supriya-gdptl / STWalk

Licence: MIT license
Implementation of "STWalk: Learning Trajectory Representations in Temporal Graphs"

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to STWalk

pykale
Knowledge-Aware machine LEarning (KALE): accessible machine learning from multiple sources for interdisciplinary research, part of the πŸ”₯PyTorch ecosystem
Stars: ✭ 381 (+2016.67%)
Mutual labels:  graph-analysis
Stellargraph
StellarGraph - Machine Learning on Graphs
Stars: ✭ 2,235 (+12316.67%)
Mutual labels:  graph-analysis
Networkx
Network Analysis in Python
Stars: ✭ 10,057 (+55772.22%)
Mutual labels:  graph-analysis
lightning-tools
Tools for Lightning Network node operators
Stars: ✭ 19 (+5.56%)
Mutual labels:  graph-analysis
ESA
Easy SimAuto (ESA): An easy-to-use Power System Analysis Automation Environment atop PowerWorld Simulator Automation Server (SimAuto)
Stars: ✭ 26 (+44.44%)
Mutual labels:  graph-analysis
yelper recommendation system
Yelper recommendation system
Stars: ✭ 117 (+550%)
Mutual labels:  graph-analysis
grblas
Python wrapper around GraphBLAS
Stars: ✭ 22 (+22.22%)
Mutual labels:  graph-analysis
ethereum-privacy
Profiling and Deanonymizing Ethereum Users
Stars: ✭ 37 (+105.56%)
Mutual labels:  graph-analysis

STWalk

This repository contains implementation of STWalk: Learning Trajectory Representations in Temporal Graphs.

STWalk uses structural properties of graphs at present and previous time-steps to capture the spatio-temporal behavior of nodes. There are two variants of STWalk:

  • STWalk1: Learns the trajectory representation of node by considering spatial and temporal neighbors at the same time.

  • STWalk2: It learns spatial representation and temporal representation separately and then combines them to generate trajectory representation.

Supriya Pandhre, Himangi Mittal, Manish Gupta and Vineeth N Balasubramanian STWalk: Learning Trajectory Representations in Temporal Graphs

Requirement

  • python 3.4 (or later)
  • networkx 1.11
  • gensim 2.3.0

To run the STWalk1 algorithm:

Please use --dataset argument, where dataset-name can be one of the following: "dblp", "epinion", "ciao". By default the code will be executed on Epinion dataset. The output will be saved in /epinion/output_stwalkone/ folder

cd code
python STWalk1.py --dataset epinion

To run the STWalk2 algorithm:

The output will be saved in /ciao/output_stwalktwo/ folder

cd code
python STWalk2.py --dataset ciao

Data

We experiment on three real-world datasets: DBLP, Epinion, Ciao datasets

  • Folder "dblp/input_graphs" contains DBLP co-authorship graphs. There are 45 from 1969 to 2011 excluding 1970, 1972, and 1974.
  • Folder "epinion/input_graphs" contains Epinion dataset graphs. Epinion is a popular product review site. Each node in a graph is reviewer and two reviewers share an edge if they have reviewed product from same category. We have considered 110 graphs from monthly data of March 2002 to April 2011.
  • Folder "ciao/input_graphs" contains Ciao dataset. Ciao is another popular product review site. We have considered 115 graphs from September 2001 to March 2011.

Cite

Please cite our paper if you use this code in your work:

Paper title: STWalk: Learning Trajectory Representations in Temporal Graphs

Link: https://arxiv.org/abs/1711.04150

Authors: Supriya Pandhre, Himangi Mittal, Manish Gupta, Vineeth N Balasubramanian

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].