Giter VIP home page Giter VIP logo

hats's Introduction

HATS

Authors: Changping Meng

Overview:

This is the code for HATS: A Hierarchical Sequence-Attention Framework for Inductive Set-of-Sets Embeddings

We focus on Set-of-Sets problems and evaluate our model in arithmatic set operation task, Adamic/Adar Index, subgraph hyperlink prediction and set of pointclouds classification.

The first Set-of-Sets task is to perform arithmetic on sequences of integers: intersection sum, intersection binary, unition sum.

The second Set-of-Sets task learns to compute Adamic-Adar Index.

The third Set-of-Sets task predicts whether there is a hyperlink between two set of nodes. The feature of each node is the embedding vectors from [GraphSAGE].

The fourth Set-of-Sets task predicts among a set of pointclouds a) whether there is a pointcloud with different label. b) the number of unique labels.
Please see the supplementary section for a brief description and summary of the code.

Requirements

  • PyTorch 0.4.0 or later - which can be downloaded here
  • Python 3.7

How to Run

For the sequence based tasks, please use the following format:

  • python train.py -m "model name" -t "task" -l "number of hidden layers in rho" -lr "learning rate" -b "batch size" -i "running times"
  • Permitted models are {deepsets,lstm,gru,cnn,hats,hier}

For the graph based tasks, we have provided an example below:

  • python train.py -m hats -t inter_sum -i 2 -lr 0.001

We recommend training these models on a GPU.

Data

Questions

Please feel free to reach out to Changping Meng (meng40 at purdue.edu) if you have any questions.

Citation

If you use this code, please consider citing:

@inproceedings{meng2019hats,
  title={HATS: A Hierarchical Sequence-Attention Framework for Inductive Set-of-Sets Embeddings},
  author={Meng, Changping and Yang, Jiasen and Ribeiro, Bruno and Neville, Jennifer},
  year={2019},
  organization={KDD}
}

hats's People

Contributors

jasonmengcp avatar

Stargazers

 avatar Jiayun Zhang avatar Zeynep avatar  avatar

Watchers

Leonardo Teixeira avatar James Cloos avatar Mayank Kakodkar avatar Zeynep 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.