Git Product home page Git Product logo

kge-dura's People

Contributors

jianyucai avatar zhanqiuzhang avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

kge-dura's Issues

Some question about the Equation 2

Hi, thanks for sharing the code, I have some questions about Equation 2 in this paper.

  1. In the original ComplEx paper of ICML 2016, the scoring function is Re(<h, r, \overline{t}>). While in Equation 2 of your paper, the scoring function becomes Re(\overline{h}rt)
  2. In Equation 2, why Re(\overline{h}rt) = Re(<h\overline{r}, t>)? I think Re(<h\overline{r}, t>) is not equal to the ComplEx' function Re(<h, r, \overline{t}>).

Looking forward to your response.

A question about the regularizer.

Since you mentioned before, h \overline{R} =(h_0r_0 - h_1r_1) + (h_0r_1 + h_1r_0) i, it can be seen as a complex vector where the real part is (h_0r_0 - h_1r_1) and the imaginary part is (h_0r_1 + h_1r_0), and the Euation (6) is the regularizer.

But why in your code the ||h \overline{R}||_2^2 = h^2 * r^2 = (lhs[0] ^ 2 + lhs[1] ^ 2) * (rel[0] ^ 2 + rel[1] ^ 2) = (h_0 ^2 + h_1 ^ 2) * (r_0 ^ 2 + r_1 ^ 2)

Since h \overline{R} is a new complex vector, where the real part is (h_0r_0 - h_1r_1) and the imaginary part is (h_0r_1 + h_1r_0), are you sure that its L2 norm's square ||h \overline{R}||_2^2 = (h_0 ^2 + h_1 ^ 2) * (r_0 ^ 2 + r_1 ^ 2)= ||h||_2^2 * ||r||_2^2 ?

Did I misunderstand anything about the L2 norm of a complex vector?

模型无法收敛

您好,我在使用当前代码训练时模型无法收敛,模型性能始终为0。
请问这可能是什么情况呢?

环境:
torch 1.10
python 3.7
RTX 3090
cuda 11.4

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.