Code Monkey home page Code Monkey logo

graphqembed's Introduction

NetQuery: Learning to Query Complex Networks

Maintainer: William L. Hamilton ([email protected])

Code for making predictions about logical queries using network embeddings and for reproducing the results of the paper "Querying Complex Networks in Vector Space."

Setup and requirements

Run pip install -r requirements.txt to obtain the necessary requirements. The primary requirements is pytorch with version >=3.0. You may want to use a virtualenv or Docker.

The biological interaction network data used in the paper can be downloaded here. Unzip the data in your working directory.

Running the code

To train a model on the Bio data, run python -m nqe.bio.train. See that file for a list of possible arguments, and note that by default it assumes that the data is in a subdirectory of your working directory (i.e., "./bio_data). By default the model will log its output and store a version of the model after training. The train, test, and validation performance will be recorded in the log file. If you are training with a GPU be sure to add the cuda flag, i.e., python -m nqe.bio.train --cuda. The default parameters correspond to the best performing variant from the paper.

NB: Currently the training files are not-portable pickle files. We hope to release a more portable version of the data soon.

NB: Only the bio data is currently publicly available.

graphqembed's People

Contributors

williamleif 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.