GithubHelp home page GithubHelp logo

peacegui / cascn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chenned/cascn

0.0 1.0 0.0 20 KB

Information Diffusion Prediction via Recurrent Cascades Convolution

License: MIT License

Python 100.00%

cascn's Introduction

CasCN

This is a TensorFlow implementation of Recurrent Cascades Convolution for the task of information cascades prediction, And the paper "Information Diffusion Prediction via Recurrent Cascades Convolution" (Accepted by ICDE 2019) will be avilable to download at the internet soon.

Overview

  • data/ put the download dataset here;
  • model/ contains the implementation of the CasCN;
  • preprocessing/ contains preprocessing code:
    • split the data to train set, validation set and test set (utils.py);
    • trainsform the datasets to the format of ".pkl" (preprocess_graph_signal.py)
    • (config.py) you can configure parameters and filepath in this file .

Datatset

The datasets we used in our paper are Sina Weibo and HEP-PH. For the Sina Weibo dataset, you can download here and the HEP-PH dataset is avilable here. Also, we provide a pre-processed Weibo dataset (T=3 hours) here and the file password is: (a7xu)

Steps to run CasCN

1.split the data to train set, validation set and test set. Then trainsform the datasets to the format of ".pkl" command:

cd preprocessing
python utils.py
python preprocess_graph_signal.py

2.train Model command:

cd model
python run_graph_sequence.py

Notice

If you want to do the experiment with citation dataset - "HEP-PE", you should first transform the format of citation dataset as the same as Weibo dataset. (the format of Weibo dataset you can reference here). And the version of the Tensorflow we used is 1.0.

cascn's People

Contributors

chenned avatar

Watchers

 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.