GithubHelp home page GithubHelp logo

lxzmxl / mne Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hkust-knowcomp/mne

0.0 1.0 0.0 31.02 MB

Source Code for IJCAI 2018 paper "Scalable Multiplex Network Embedding"

C++ 2.18% Shell 4.40% Batchfile 0.01% Makefile 25.10% C 65.45% Objective-C 0.10% M4 0.15% Python 0.63% Roff 0.03% TeX 1.96%

mne's Introduction

MNE(Multiplex Network Embedding)

This is the source code for IJCAI 2018 paper "Scalable Multiplex Network Embedding".

The readers are welcome to star/fork this repository and use it to train your own model, reproduce our experiment, and follow our future work. Please kindly cite our paper:

@inproceedings{zhang2018MNE,
  author    = {Hongming Zhang and
               Liwei Qiu and
               Lingling Yi and
               Yangqiu Song},
  title     = {Scalable Multiplex Network Embedding},
  booktitle = {Proceedings of the Twenty-Seventh International Joint Conference on
               Artificial Intelligence, {IJCAI} 2018, July 13-19, 2018, Stockholm,
               Sweden.},
  pages     = {3082--3088},
  year      = {2018},
  url       = {https://doi.org/10.24963/ijcai.2018/428},
  doi       = {10.24963/ijcai.2018/428},
  timestamp = {Sat, 28 Jul 2018 14:39:21 +0200}
}

Note that due to the size limitation of the repository, we only provide few small datasets to help you understand our code and reproduce our experiment. You are welcome to download those largest datasets by yourself or use your own dataset.

Requirement

Python 3
networkx >= 1.11
sklearn >= 0.18.1
gensim >= 3.4

Dataset

Here we provide Vickers dataset as an example, you can download all the other datasets from Twitter Higgs๏ผŒMultiplex (old), or Multiplex (new). You can also use your own multiplex network dateset, as long as it fits the following template.

edge_type head tail weight
    r1     n1   n2    1
    r2     n2   n3    1
    .
    .
    .

Model

Before training, you should first create a folder 'Model' with:

mkdir Model

The embedding model will be automatically saved into that folder.

Train

To train the embedding model, simply run:

python3 train_model.py data/Vickers-Chan-7thGraders_multiplex.edges

You can replace the name of provided dataset with your own dataset.

Demo

To repeat the experiment in the paper, simply run:

python3 main.py data/Vickers-Chan-7thGraders_multiplex.edges

Acknowledgment

We built the training framework based on the original Gensim Word2Vec. We used the code from LINE, Node2Vec, and algorithm from PMNE to complete our experiment.

Others

If you have some questions about the code, you are welcome to open an issue or send me an email, I will respond to that as soon as possible.

mne's People

Contributors

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