Coder Social home page Coder Social logo

haonanli / sdne Goto Github PK

View Code? Open in Web Editor NEW

This project forked from suanrong/sdne

0.0 2.0 0.0 64.09 MB

This is a implementation of SDNE (Structural Deep Network embedding)

Home Page: http://www.kdd.org/kdd2016/subtopic/view/structural-deep-network-embedding

Python 100.00%

sdne's Introduction

SDNE

This repository provides a reference implementation of SDNE as described in the paper:

Structural Deep network Embedding.
Daixin Wang, Peng Cui, Wenwu Zhu
Knowledge Discovery and Data Mining, 2016.

The SDNE algorithm learns a representations for nodes in a graph. Please check the paper for more details.

Basic Usage

$ python main.py -c config/xx.ini

noted: your can just checkout and modify config file or main.py to get what you want.

Input

Your input graph data should be a txt file or a mat file and be under GraphData folder

file format

The txt file should be edgelist and the first line should be N , the number of vertexes and E, the number of edges

The mat file should be the adjacent matrix.

you can save your adjacent matrix using the code below

import scipy.io as sio
sio.savemat("xxx.mat", {"graph_sparse":your_adjacent_matrix})

It is recommended to use mat file and save the adjacent matrix in a sparse form.

txt file sample

5242 14496
0 1
0 2
4 9
...
4525 4526

noted: The nodeID start from 0.
noted: The graph should be an undirected graph, so if (I J) exist in the Input file, (J I) should not.

Citing

If you find SDNE useful in your research, we ask that you cite the following paper:

@inproceedings{Wang:2016:SDN:2939672.2939753,
 author = {Wang, Daixin and Cui, Peng and Zhu, Wenwu},
 title = {Structural Deep Network Embedding},
 booktitle = {Proceedings of the 22Nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining},
 series = {KDD '16},
 year = {2016},
 isbn = {978-1-4503-4232-2},
 location = {San Francisco, California, USA},
 pages = {1225--1234},
 numpages = {10},
 url = {http://doi.acm.org/10.1145/2939672.2939753},
 doi = {10.1145/2939672.2939753},
 acmid = {2939753},
 publisher = {ACM},
 address = {New York, NY, USA},
 keywords = {deep learning, network analysis, network embedding},
} 

sdne's People

Contributors

suanrong avatar

Watchers

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