Giter Club home page Giter Club logo

lowfer's Introduction

LowFER

Code for the paper "LowFER: Low-rank Bilinear Pooling for Link Prediction", ICML 2020

NOTE: The code is based on the open-source code released by TuckER. Please refer to this link for the original code and citing their work.

Experiments

See experiments.txt for the commands to run the model with best hyperparameters.

Requirements

The original codebase was implemented in Python 3.6.6. Required packages are:

numpy      1.15.1
pytorch    1.0.1

Scripts

Run the scripts from main directory as python -m scripts.filename:

toy_example.py: This script contains the toy dataset used to visualize the Proposition 1 in paper. It runs LowFER under the conditions specified and shows that it perfectly separates positive examples from negative examples.

bilinear_models_relations.py: This script runs the conditions presented in relations with bilinear models (section 4.3) with toy setup and show equivalence between LowFER version of other bilinear models and the true scoring functions of those models.

relation_results_analysis.py: Evaluates per relation metrics on WN18/RR dataset using LowFER as reported in the per relation analysis results (section 5.4). Note, it requires a trained model so please first run LowFER for WN18/RR as detailed in experiments.txt.

plots.py: Simple plots script used to generate effect of k and de.

Update: A refactored version of the code can be found on the refactor branch with faster evaluation. The results there are slightly less (in 3rd decimal) than this implementation.

Citation

@inproceedings{amin2020lowfer,
  title={LowFER: Low-rank Bilinear Pooling for Link Prediction},
  author={Amin, Saadullah and Varanasi, Stalin and Dunfield, Katherine Ann and Neumann, G{\"u}nter},
  booktitle={International Conference on Machine Learning},
  pages={257--268},
  year={2020},
  organization={PMLR}
}

lowfer's People

Contributors

suamin avatar

Stargazers

 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.