Giter Club home page Giter Club logo

hyperkg's Introduction

HyperKG: Hyperbolic Knowledge Graph Embeddings for Knowledge Base Completion

This repository contains our implementation of the HyperKG: Hyperbolic Knowledge Graph Embeddings for Knowledge Base Completion.

License

This code is partially based on code from the following repositories:

Every source code file written exclusively by the author of this repo is licensed under Apache License Version 2.0. For more information, please refer to the license.

Instructions for running:

  • Prerequisites :

    • Python, C, C++.
    • Python Libraries: NumPy, SciPy, pytorch (with CUDA support).
  • Run the code:

    1. Compile the C, C++ code using: sh make.sh
    2. To analyze HyperKG's performance on a dataset, please run:
      python example_train_poincare.py
      
      All parameters/hyperparameters can be altered by directly modifying the example_train_poincare.py file.
    3. Known issues: There is a portability issue with the original C code provided by OpenKE-PyTorch (old). As a quick workaround, I added a Datatype control variable in the original Config Class. If a segmentation fault occurs after Step 2, then this command con.set_int_type('int64') should be commented out in both example_train_poincare.py and example_test_poincare.py files.

Saved Models:

The folder res/saved_models contains saved models for the experiments WN18RR and FB15k-237.

Contact:

  • prodromos DOT kolyvakis AT epfl DOT ch

hyperkg's People

Contributors

prokolyvakis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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