Git Product home page Git Product logo

lorentz_embeddings_recreation's Introduction

Implementation of Lorentz Embeddings

This repository provides an implemenation of Lorentz embeddings as described in "Learning Continuous Hierarchies in the Lorentz Model of Hyperbolic Geometry" (Nickel and Kiela, 2018). Note that this is not their official implementation but an attempt to recreate and visualize the results presented in the paper.

Requirements

  • Python 3.5
  • PyTorch 0.4

Tasks to Complete

  • Implement the basic model
  • Get model to converge on WordNet mammals
  • Visualize results in Poincaré space
  • Train the model on WordNet noun hierarchy
  • Obtain same mAP/MR on WordNet nouns (currently 8.97 MR and 0.7315 mAP with d == 5)
  • Obtain same mAP/MR on WordNet verbs
  • Obtain same mAP/MR on EuroVoc Data
  • Obtain same mAP/MR on ACM data
  • Obtain same mAP/MR on MeSH data

Visualization

Training visualization of 3D Lorentz embeddings trained on Wordnet mammals projected into the 2D Poincaré disk.

training visualization

These heatmaps show how the distance between points scales as a point approaches the edge of the manifold.

distance from edge distance from center

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.