Giter Site home page Giter Site logo

metapath-generator's Introduction

Metapath guided random walk generator

Zeyu Li [email protected]

Run

$ python3 gene_walk.py [dataset] [full_graph] [length_of_walk] [coverage] [multiprocessing]

or using the other version that implemented by dictionary instead of networkx.

$ python3 gene_walk_dict.py [dataset] [full_graph] [length_of_walk] [coverage] [multiprocessing]

The latter runs faster.

The parameters are the following:

  • dataset: the name of the dataset
  • full_graph: when 1, using full graph, otherwise use [dataset].edges.lp.train for link prediction
  • length_of_walk: length of the walk, metapath2vec set it to 100
  • coverage: the numwalks parameters, the number of times each node was covered
  • multiprocessing: the number of processes to run the generation.

Input

  1. [dataset].edges: id pairs of edges. [plain txt]
  2. [dataset].type: a pickle dumpped file in this form - [id1_type, id2_type, ...]. Type is represented by char, such as A. [binary]
  3. [dataset].edge.lp.train: subgraph for training of link prediction [plain text]
  4. [dataset].metapath: a set of metapath separated by \n. [plain text]

What are the dirs?

[file name]: useage [if it's the input/output of some model or neither]

  • embeddings: generated embeddings from metapath2vec++ [output]
  • hin_data: reformatted data for hin2vec [input]
  • hin_embeddings: generated embeddings from hin2vec [output]
  • metapath: generated walks composed by id's only [neither]
  • metapath_100_1000: huge length of walks (metapath2vec's authors' suggestion) [neigher]
  • metapath2vec: metapath2vec source code [src]
  • pte: [NOT USED]
  • typed_walk: adding type before each id's , input of metapath2vec [input]

metapath-generator's People

Contributors

zyli93 avatar

Watchers

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