Code Monkey home page Code Monkey logo

stm's Introduction

Structural Temporal Modeling (STM)

Networks are a fundamental and flexible way of representing various complex systems. Many domains such as communication, citation, procurement, biology, social media, and transportation can be modeled as a set of entities and relationships among them. Temporal networks are a specialization of general networks where temporal evolution of the system is as important to understand as the structure of entities and relationships.

This code discovers Independent Temporal Motif (ITeM) in a temporal network. It takes a temporal graph of the format

source,edge_type,destination,time

and generates various distributions using ITeM

Please contact [email protected] for any question.



#clone TAGBuilder and install it in <HOME> dir

git clone https://github.com/temporal-graphs/TAGBuilder.git

cd TAGBuilder/code/STMBase

mvn clean install

cd TAGBuilder/code/TAGBuilder

mvn clean install

cd <HOME>

git clone https://github.com/temporal-graphs/STM.git

cd STM

mvn clean package

It generates an uber-jar in the target directory which can be used to generate the ITeM distributions

java -cp target/uber-STM-1.4-SNAPSHOT.jar gov.pnnl.stm.algorithms.STM_NodeArrivalRateMultiType -input_file="input.csv" -separator="," -sampling=false -valid_etypes=1 -delta_limit=false -k_top=4 -max_cores=1 -base_out_dir="./item-output/"

where input.csv has following format

1,0,2,1001
1,0,3,1002
1,0,4,1002
2,0,5,1003

It generates multiple internal files for different temporal properties. Follwoing script reads them in and generate "graph embeddings" and "node embeddings"

python STMGetEmbedding.py './item-output/' './emb/'

If you find this useful, please cite following publication

@article{purohit2022item,
  title={ITeM: Independent temporal motifs to summarize and compare temporal networks},
  author={Purohit, Sumit and Chin, George and Holder, Lawrence B},
  journal={Intelligent Data Analysis},
  volume={26},
  number={4},
  pages={1071--1096},
  year={2022},
  publisher={IOS Press}
}

stm's People

Contributors

purohitsumit avatar sumitpurohitpnnl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stm's Issues

Fail to build

Still see some organization specific dependencies.

motif styles

excuse me, i want to know the ITem only identify 16 motif styles in the paper? or return a collection of motif

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.