Giter VIP home page Giter VIP logo

fasten's Introduction

FASTEN

FASTEN is a generative model to solve diffusion network inference problem.

Our model infers multiple diffusion networks using the first-hand sharing pattern.

We also provide several diffusion network models listed below.

  • InfoPath
  • MMRate
  • MixCascades

Please refer to my paper for more details.

Uncovering Multiple Diffusion Networks Using the First-Hand Sharing Pattern
Pei-Lun Liao, Chung-Kuang Chou, and Ming-Syan Chen
Proceedings of the 2016 SIAM International Conference on Data Mining. 2016, 63-71 

Dependency

Note:
You should compile the SNAP core, cascdynetinf.cpp and kronecker.cpp before doing installation.

  • SNAP core is in <Your SNAP Library Path>/snap-core directory.

    To compile SNAP core.

    cd <Your SNAP Library Path>/snap-core
    make
    
  • cascdynetinf.cpp and kronecker.cpp are in <Your SNAP Library Path>/snap-adv directory.

    To compile cascdynetinf.cpp and kronecker.cpp

    cd <Your SNAP Library Path>/snap-adv
    g++ -c cascdynetinf.cpp -o cascdynetinf.o -I ../snap-core -I ../glib-core ../snap-core/Snap.o
    g++ -c kronecker.cpp -o kronecker.o -I ../snap-core -I ../glib-core ../snap-core/Snap.o
    

After compilation put the compiled objective files i.e. Snap.o, cascdynetinf.o and kronecker.o into lib directory.

Installation

Get codes from Github.

git clone https://github.com/plliao/FASTEN.git

cd FASTEN

Set the SNAP library path in Makefile

vim Makefile

Find SnapDirPath = ../Snap-2.3 in Makefile and set your SNAP Library path.

Create the required directories.

mkdir obj bin

Compile codes using make command.

make -j 4

The compiled programs are in the bin directory.

Usage

Please check all model parameters listed in the corresponging cpp file.

We provide an example in exp.sh script for you to refer.

To run the script

./exp.sh

Note that you should create the required directories before you run the script i.e. mkdir plot result data.

Program Descriptions

Models

  • InfoPath.cpp: main file of InfoPath model
  • MMRate.cpp: main file of MMRate model
  • MixCascades.cpp: main file of MixCascades model
  • FASTEN.cpp: main file of FASTEN model

Evaluations

  • EvaluationAUC.cpp: PRC AUC evaluation file
  • EvaluationMSE.cpp: MSE evaluation file
  • EvaluationMultiple.cpp: multiple network evaluation file

Utility

  • generate_FASTEN_nets.cpp: cascades and network generator using our diffusion model
  • DataMerger.cpp: a program to merge several cascades and network files into single file.

Reference

  1. InfoPath, Structure and Dynamics of Information Pathways in On-line Media, at WSDM 2013
  2. MMRate, MMRate: inferring multi-aspect diffusion networks with multi-pattern cascades, at KDD 2014
  3. MixCascades, Cluster cascades: Infer multiple underlying networks using diffusion data, at ASONAM 2014
  4. FASTEN, Uncovering Multiple Diffusion Networks Using the First-Hand Sharing Pattern, at SDM 2016

fasten's People

Contributors

ckchou avatar

Watchers

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