Code Monkey home page Code Monkey logo

dpmpn's Introduction

DPMPN

Dynamically Pruned Message Passing Networks

The code is based on our pervious naming scheme of our model. Then, we changed a lot of terms that might cause confusion when referring to components in our model in order to give a better and clearer statement in our paper. Here is the list of terminology between the previously used and the currently used:

  • unconsciousness flow (previous): IGNN (now)
  • consciousness flow: AGNN
  • attended nodes: nodes in the attending-from horizon
  • seen nodes: nodes in the attending-to horizon
  • memorized nodes: visited nodes
  • scanned edges: edges of neighborhood

Training and Evaluating

./run.sh --dataset <Dataset>

can be one of 'FB237', 'FB237_v2', 'FB15K', 'WN18RR', 'WN18RR_v2', 'WN', 'YAGO310', 'NELL995'.

Visualization

Run with test_output_attention to get data files of extracted subgraphs for each query in test. For example, if you want to get data files on the NELL995 dataset (containing several separate datasets), with max_attended_nodes=20, run:

./run.sh --dataset NELL995 --test_output_attention --max_attended_nodes 20 --test_max_attended_nodes 20

Then, you get data files in the output/NELL995_subgraph directory. Next, visualize them by:

cd code
python visualize.py --dataset NELL995

You will find image files for visualization in the visual/NELL995_subgraph directory.

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.