Git Product home page Git Product logo

Comments (2)

mali-git avatar mali-git commented on May 29, 2024

Question: do models trained under LCWA or sLCWA have to behave differently here?

The behavior should be the same for both approaches. But the user should be aware that if the model was trained based on the LCWA training approach (in combination with 1:N-scoring), that for each (h,r)-pair for which a triple exists in the KG, all (h,r,t_i) that are not part of the KG have been considered as false examples during training. Therefore, asking the model to provide predictions for such (h,r)-pairs might not be very useful.

In general, we should just make sure to call the functions model.predict_scores_all_heads()/model.predict_scores_all_tails(), and not directly model.score_h()/model.score_t(), because the former make sure that the model uses the appropriate scoring functions in case it was trained with inverse relations.

from pykeen.

mberr avatar mberr commented on May 29, 2024

It should be clear if higher score or lower score means more likely to be a real edge.

In our framework, we always treat higher scores as higher likelihood.

We might want to have it automatically filter out entities corresponding to edges already in the original knowledge graph.

👍

Question: do models trained under LCWA or sLCWA have to behave differently here? Does this functionality have to behave differently based on the loss function?

For point-wise loss functions, the score are calibrated across different (h, r) / (r, t)-pairs (since we have a fixed "target value" for each triple during training). For pairwise loss functions, this is not the case, and during training we only imposed a meaningful order between tail entities for the same (h,r) (and vice-versa).

from pykeen.

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.