Coder Social home page Coder Social logo

transe-pytorch's Introduction

TransE-PyTorch

Implementation of TransE [1] model in PyTorch.

Table of Contents

  1. Results
    1. Datasets
      1. FB15k
  2. Usage
    1. Training
      1. Options
    2. Unit tests
  3. References

Results

Datasets

FB15k

Source/Metric Hits@1 (raw) Hits@3 (raw) Hits@10 (raw) MRR (raw)
Paper [1] X X 34.9 X
TransE-PyTorch 11.1 25.33 46.53 22.29
python3 main.py --dataset_path=<path_to_fb15k_dataset> --epochs=50000 --batch_size=128
Negative sampling impact over time

Negative sampling impact over time

X axis - epoch id

Y axis - % of samples with nonzero loss

Usage

Synthetic data

For fast debugging/feedback loop use synthetic data from synth_data directory.

python3 main.py --nouse_gpu

Training

python3 main.py --nouse_gpu --dataset_path=<path_to_your_dataset>

Options

To see possible configuration options run help

python3 main.py --help

Unit tests

python3 -m unittest discover -p "*_test.py"

References

[1] Bordes et al., "Translating embeddings for modeling multi- relational data," in Adv. Neural Inf. Process. Syst., 2013

transe-pytorch's People

Contributors

khairuddinn avatar

Watchers

James Cloos 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.