Git Product home page Git Product logo

tridnr's Introduction

TriDNR

Tri-Party Deep Network Representation

The codes implement the TriDNR algorithm, which learns an continuous representation for each node in a network. TriDNR uses information from three perspectives, including node structure, node content, and node labels (if available), to jointly learn optimal node representation

The code is developed in Python, based on the package gensim, and DeepWalk. All required packages are defined in requirements.txt. To install all requirement, simply use the following commands:

pip install -r requirements.txt

A demo is provide in 'demo.py', which runs and compares several algorithms

About the datasets: There are two networked datasets in the paper, i.e., DBLP and Citeseer-M10. Each dataset containts 3 files:

1. docs.txt : title information of each node in a network, each line represents a node (paper). The first item in each line is the node ID

2. adjedges.txt : neighbor nodes of each node in a network. The first item in each line is the node ID, and the rest items are nodes that has a link to the first node. Node that if only one item in a line, it means that the node has no links to other nodes

3.labels: class labels of a node. Each line represents a node id and its class label

The first item of each line across three files are matched.

Note:

  1. On some dataset (M10), some neighbor nodes do not appear in the files of docs.txt or labels.txt.
  2. For the fairness of comparison, I would sugget shuffling the dataset before training different methods.

tridnr's People

Contributors

shiruipan avatar

Watchers

 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.