Giter VIP home page Giter VIP logo

gat2vec's Introduction

GAT2VEC

Representation Learning for Attributed Graphs is a framework for learning a represenation using multiple sources of information.

DIRECTORIES:

  1. src :- has the source code for GAT2VEC, and evaluation
  2. data :- it contains the input networks in respective directories, along with labels for classification task the files adjedges.txt, labels.txt, and docs.txt are the orignal files of the datasets. we preprocess and generate the files for GAT2VEC processing and to bring the uniformity in the for vertex id's We uniformly start vertex id's from 1.
  3. embeddings: the embeddings learned are stored in this directory

DATA FORMAT GAT2VEC reads network in adjacency list. It needs two types of files:

  1. _graph.adjlist : This adjacency list represents the structural graph (directed or undirected).
  2. _na.adjlist: This adjacency list is an undirected bipartite graph. The structural vertices are numbered from to 1 to num. of structural nodes, and the attribute vertices are numbered after structural vertices. This bipartite graph doesn't contain labels as attributes.

The file <network_name>_label_10_na.adjlist is a bipartite graph in which labels of 10% of nodes are incorporated as attributes.

USAGE: To learn a representation without using label information.

  1. #python main.py --data M10

To learn a representation using labels.

  1. #python main.py --data M10 --label True

To learn a representation only using bi-partite graph

  1. #python main.py --data M10 --algo g2vbip

PS: The pre-processing code for generating structural and bipartite graph will be uploaded soon My python code has influence of Java :)

gat2vec's People

Contributors

snash4 avatar

Watchers

Shail Rakhunde 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.