GithubHelp home page GithubHelp logo

mell's Introduction

MELL

MELL is short for Multiplex network Embedding via Learning Layer vectors. This method is for embedding multiplex network. Multiplex network is a multi-layer network where all layers have the same set of nodes.

PDF: https://dl.acm.org/citation.cfm?id=3191565

How to use

Firstly, this program requires python 3, tensorflow and numpy libraries. We use python 3.6.3, tensorflow 1.1.0, and numpy 1.14.1.

To test MELL, you can run a following command.

python main.py

This command uses the sample data set in "Dataset" folder. we provide two data set, and you can use these for trying.

You also can use MELL.py directly for your own experiment. Then the codes will be like following codes.

from MELL.MELL import MELL_model


# you should get L, N, directed, edges for training and edges for testing from your data set
# you also should decide the hyper parameters: d, k, lamm, beta, gamma

# define the model
model = MELL_model(L, N, directed, train_edges, d, k, lamm, beta, gamma)
# train
model.train(500)
# predict
prediction = [ model.predict(t) for t in test_edges]

Citation

@inproceedings{
matsuno2018,
title={MELL: Effective Embedding Method for Multiplex Networks},
author={Ryuta Matsuno and Tsuyoshi Murata},
booktitle={WWW '18 Companion Proceedings of the The Web Conference 2018},
year={2019},
pages={1261--1268},
url={http://www.doi.org/10.1145/3184558.3191565},
}

License

MIT

mell's People

Contributors

ryutamatsuno avatar

Stargazers

Emese Sukei avatar  avatar Mobility and Sustainability avatar Hao Xiong avatar sunran avatar Gunarto Sindoro Njoo avatar zdl-jose avatar fdS avatar

Watchers

James Cloos avatar  avatar Anasua avatar

mell's Issues

Error index out of bound when training

Hello,
I have the following error when I try to apply your method on my multiplex graph of 70 nodes. Any idea ?

d : 128
k : 4
lamm : 10
beta : 1
gamma: 1
Traceback (most recent call last):

File "", line 11, in
model = MELL_model(nb_layers, nb_nodes, False, sorted_matrix_train_edges, EMBED_DIMENSION, 4, 10, 1, 1, eta = 0.075)

File "/home/winkidogan/Documents/DEV/2018_DeepMultiplex/MELL/MELL.py", line 55, in init
self.zeroEdges = getZeroEdges(L, N, directed, edges)

File "/home/winkidogan/Documents/DEV/2018_DeepMultiplex/MELL/MELL.py", line 251, in getZeroEdges
A = adjacencyMatrix(L, N, directed, edges)

File "/home/winkidogan/Documents/DEV/2018_DeepMultiplex/MELL/MELL.py", line 268, in adjacencyMatrix
A[e[0]][e[1]][e[2]] = e[3]

IndexError: index 70 is out of bounds for axis 0 with size 70

Best.

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.