Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TransF implementation #9880

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

yukew1998
Copy link

@yukew1998 yukew1998 commented Dec 19, 2024

TransF

  • TransF implementation of "Knowledge Graph Embedding by Flexible Translation" from (https://cdn.aaai.org/ocs/12887/12887-57589-1-PB.pdf)
    • Transformation equation: $\mathbf{e}_h + f(\mathbf{e}_h, \mathbf{e}_t, \mathbf{e}_r) \cdot \mathbf{e}_r \approx \mathbf{e}_t$
    • Scoring function $d(h, r, t) = - | \mathbf{e}_h + f(\mathbf{e}_h, \mathbf{e}_t, \mathbf{e}_r) \cdot \mathbf{e}_r - \mathbf{e}_t |_p$
    • Scaling function $f(\mathbf{e}_h, \mathbf{e}_t, \mathbf{e}_r) = \sigma((\mathbf{e}_h \odot \mathbf{e}_t) \cdot \mathbf{e}_r)$
  • Added test for TransF
  • Updated changelog and readme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants