Git Product home page Git Product logo

kgml's Introduction

KGML

INTRODUCTION

Predicting relations in Knowledge Graph by Multi-Label Deep Neural Network.

EXECUTION

Training

python train_kgml.py [option] [dataset]

Dataset

FB15k, WN18 or WD40k.

Option

Option Description
-d1 Hyperparameter dim1. Integer. Default value is 100.
-d2 Hyperparameter dim2. Integer. Default value is 100.
-a Hyperparameter alpha. Float in [0,1]. Default value is 1.0.

Example

python train_kgml.py WD40k
python train_kgml.py -d1 50 -d2 50 -a 0.5 FB15k

Test

python test_kgml.py [model] [dataset]

Example

python test_kgml.py kgml_WD40k.h5 WD40k

DATA

FB15k and WN18 are the same as the ones used in the paper "Translating Embeddings for Modeling Multi-relational Data (2013).".
https://everest.hds.utc.fr/doku.php?id=en:transe They are available at data.zip in https://github.com/thunlp/KB2E.

Experiment Environment

  • tensorflow 1.4.1
  • Keras 2.1.2
  • CUDA 8.0.61
  • Cudnn 6.0.20

kgml's People

Contributors

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