GithubHelp home page GithubHelp logo

Comments (4)

ZichaoHuang avatar ZichaoHuang commented on May 29, 2024

I don't think I fully understand your question, but I will try my best to answer it.
Firstly, idx_head_prediction is the prediction result of the head entity prediction task, not tail entity prediction.
Head entity prediction and tail entity prediction are launched seperatly during evaluation.

However, the model can't promise that the most promising entitiy is always ranked at top1 in its prediction result.
If the model is well trained, technically a more promising entity would be ranked before a less one.

from transe.

martozzz avatar martozzz commented on May 29, 2024

@ZichaoHuang Sorry for the misleading that I mean idx_tail_prediction in this example. If I understand correctly, idx_tail_prediction is the prediction result of the tail entity prediction task (s, p, ?), but in a reversed order, so I thought the 0-th element in idx_tail_prediction[::-1] should be the most possible prediction for answering (s, p, ?), but I found the 0-th element seems to be the subject object s always.

So I guess, is the element with index 1 (instead of element with index 0) in idx_tail_prediction[::-1] the most possible prediction for answering (s, p, ?)?

from transe.

ZichaoHuang avatar ZichaoHuang commented on May 29, 2024

but I found the 0-th element seems to be the subject object s always

This should not be true.

A idx_tail_prediction is the entire entity set ranked by the tail prediction score from the TransE model according to a specific <head, relation> input. Therefore, idx_tail_prediction[::-1][0] should be the entity with the highest tail prediction score instead of head.

from transe.

martozzz avatar martozzz commented on May 29, 2024

I will check it. Thanks for your reply.

from transe.

Related Issues (20)

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.