Code Monkey home page Code Monkey logo

simultaneous-imm's Introduction

Compile

use make to compile
"linux & gcc 4.7.2" preferred

Execute

Example:
    ./imm_discrete -dataset nethept/ -k 50 -model IC -epsilon 0.1
    ./imm_continuous -dataset nethept/ -k 50 -model CONT -epsilon 0.1 -T 0.01

Arguments:
    -model:
        the diffusion model uses
        IC or LT or CONT

    -dataset:
        path to the dataset directory

    -epsilon:
        a double value for epsilon

    -k:
        number of selected nodes
	-T:
    	time threshold, only in continous model

Dataset Format

Three files are necessary inside path_to_dataset folder

Format for attribute

Location:
    path_to_dataset/attribute.txt
Format:
    This file should have exactly two lines
    n=number of nodes
    m=number of edges

Format for IC model

Location:
    path_to_dataset/graph_ic.inf
Format:
    Each line has three numbers
    node1 node2 propogation_probability_from_node1_to_node2
Comments:
    It is always a directed graph
    node number should range in [0 to n-1] (inclusive)

Format for LT model

Location:
    path_to_dataset/graph_lt.inf
Format is same as IC model

Format for CONT model

Location:
    path_to_dataset/graph_lt.inf
Format:
    Each line has Four numbers
    node1 node2 param1 param2
For the details of two parameters, refer to http://www.cc.gatech.edu/~ndu8/DuSonZhaMan-NIPS-2013.html

simultaneous-imm's People

Contributors

sparklyys avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.