Giter VIP home page Giter VIP logo

ecognn's Introduction

EcoGNN

This repo provides a reference implementation of EcoGNN as described in the paper:

"EcoGNN: An Information Cascade Prediction Framework" This paper will be released soon

Basic Usage

Requirements

The code was tested with python 3.7, pytorch 1.10, cudatoolkit 11.3.1, and cudnn 6.0. Install the dependencies via Anaconda:

# create virtual environment
conda create --name eocognn python=3.7 cudatoolkit=11.3.1 cudnn=6.0

# activate environment
conda activate ecognn

# install other requirements
pip install -r requirements.txt

Run the code

cd ./EcoGNN

# generate information cascades
python ./preprocess/gene_cas.py 

# generate global graph embeddings
python ./preprocess/Global_embedding_processing_all.py 

# preprocess cascades data for training
python ./preprocess/preprocess_trainDataSet.py

# run EcoGNN model
python EcoGNN_train_shuffle.py

More running options are described in the codes.

Evaluate

In addition, we also provide already trained models for you to reproduce the experimental effects in the paper.

# run evaluate EcoGNN model
python EcoGNN_metric.py

Datasets

Our's datasets from CasFlow.

Thanks to Xovee Xu for providing the dataset. Datasets download link: Google Drive or Baidu Drive (password: 1msd).

The datasets we used in the paper are come from:

Contact

For any questions please open an issue or drop an email to: [email protected],[email protected]

ecognn's People

Contributors

xiaoyuan011 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.