Giter VIP home page Giter VIP logo

iminfector's Introduction

Multi-task Learning for Influence Estimation and Maximization

Code and instructions to reproduce the analysis in the paper.

You can find online videos that describe IMINFECTOR and its previous variant.

mkdir Code Data Figures
cd Code
git clone https://github.com/GiorgosPanagopoulos/Influence-Maximization-via-Representation-Learning

Infector

infector architecture

Requirements

To run this code you will need the following python packages:

which can be installed using the requirements.txt:

pip install -r requirements.txt

Data

All datasets need certain preprocessing before the experiments.

python preprocessing

The script creates the required folder structure for every dataset (Digg, Weibo, MAG)->Init_Data,Embeddings, Seeds, Spreading. It then downloads the Digg and Weibo datasets, and preprocesses them for curation and derivation of the network and the diffusion cascades.
To derive the MAG network and diffusion cascades, we employed the tables Paper, Paper References, Author, PaperAuthorAffiliation, Fields of Study, Paper Fields of Study from the official MAG. There is also an open version. Add these datasets to "MAG/Init_data" and run mag_preprocessing.py

Run

The main function will derive and evaluate the seed sets of the two metrics and IMINFECTOR as well as the input for the baseline methods.
However, some of the baselines need to be run separately using their original codes, found in these locations:
Credit Distribution and Simpath
IMM

Run with default parameters for sampling percentage, learning rate, number of epochs, embeddings size and number of negative samples.

python main --sampling_perc=120 learning_rate=0.1 --n_epochs=5 --embedding_size=50 --num_neg_samples=10

Plots

Manually change the three paths to the directories of the datasets in plot_precision.R and plot_spreading.R and run them.

Reference

If you use this work, please cite:

@article{panagopoulos2020multi,
  title={Multi-task Learning for Influence Estimation and Maximization},
  author={Panagopoulos, George and Malliaros, Fragkiskos and Vazirgiannis, Michalis},
  journal={IEEE Transactions on Knowledge and Data Engineering},
  year={2020},
  publisher={IEEE}
}
@inproceedings{panagopoulos2020influence,
  title={Influence Maximization Using Influence and Susceptibility Embeddings},
  author={Panagopoulos, George and Malliaros, Fragkiskos D and Vazirgianis, Michalis},
  booktitle={Proceedings of the International AAAI Conference on Web and Social Media},
  volume={14},
  pages={511--521},
  year={2020}
}

License

iminfector's People

Contributors

geopanag avatar dependabot[bot] avatar

Watchers

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