Git Product home page Git Product logo

schema's Introduction

Leveraging Ontological Schema Information in Embedding Models for Knowledge Graphs

  1. Overview

This package contains all source code and datasets for:

  1. Efficient training of Energy-Based Models for Knowledge Graphs.
  2. Leveraging Schema Information (expressed in RDF Schema) during learning.

The models implemented in this package extend the models proposed in the following works:

  • Translating Embeddings (TransE) - Bordes et al., NIPS 2013.
  • Semantic Matching Energy (SME) - Bordes et al., MLJ 2013.
  • Structured Embeddings (SE) - Bordes et al., AAAI 2011.

Content of the package:

  • learn_parameters.py : handles the main learning process.
  • data/ : contains all datasets, namely FB13, FB15k, WN11, WN18, DBpedia 2014, YAGO3. FB13, FB15k, WN11 and WN18 are used in related works in literature; DBpedia 2014 and YAGO3 are two additional large datasets from the Semantic Web literature.
  • energy/ : contains all code neede for defining and training the models (loss functionals, dissimilarity functions, adaptive learning rate selectors such as AdaGrad, AdaDelta and Momentum, code for leveraging additional RDF Schema information etc.)
  • scripts/ : contains all scripts used for running the experiments - each script generates a sequence of commands, and multiple commands can be run in parallel (e.g. by using the GNU Parallel utility).
  1. 3rd Party Libraries

This package is written in Python, and uses the Theano library for automatic symbolic differentiation, and efficiently compiling the energy functions and their gradients on heterogeneous architectures (e.g. CPU, GPU). It also uses Numpy, Scipy, PyMongo (for saving the learned models and experimental results on MongoDB), and Seaborn (for generating plots).

  1. References

  • A. Bordes and E. Gabrilovich, “Constructing and mining web-scale knowledge graphs” - Tutorials at KDD 2014 and WWW 2015
  • A. Bordes, X. Glorot, J. Weston, and Y. Bengio, “A semantic matching energy function for learning with multi-relational data - application to word-sense disambiguation” - MLJ 2013
  • A. Bordes, N. Usunier, A. Garcia-Duran, J. Weston, and O. Yakhnenko, “Translating embeddings for modeling multi-relational data” - NIPS 2013
  • A. Bordes, J. Weston, R. Collobert, and Y. Bengio, “Learning structured embeddings of knowledge bases” - AAAI 2011

schema's People

Contributors

knowledgegraph avatar

Watchers

James Cloos avatar Emir Muñoz 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.