Git Product home page Git Product logo

Comments (7)

rufex2001 avatar rufex2001 commented on August 14, 2024

You might have to change the lookup_embedder.initialize to normal_ to see the relevant error. Also, specifying the types for inverse_relations_model.base_model.entity_embedder and relation_embedder fix this, but ideally we shouldn't have to.

from kge.

rgemulla avatar rgemulla commented on August 14, 2024

I do not think this is related to the commit you mention. Instead, it seems to be an error in your config file: lookup_embedder.initialize: uniform is set in the config, but lookup_embedder.initialize_args is not set. It therefore complains. Adding lookup_embedder.initialize_args.a=1. (for example) resolves the problem.

from kge.

rufex2001 avatar rufex2001 commented on August 14, 2024

from kge.

rgemulla avatar rgemulla commented on August 14, 2024

No, the error message was good: it complained that the a argument of the initializer was missing. (Please include the error messages in the issue next time.)

from kge.

rufex2001 avatar rufex2001 commented on August 14, 2024

Ok, so two things happened here. 1) The config file I uploaded was not correct, sorry. I attach a new one. 2) The issue was hackily fixed in 7066d9b, because I needed to run searches already. So, in order to reproduce, one needs to go back to 38a6968 and run the attached config file. The error message is:

KeyError: 'entity_embedder'

Apparently, we did not notice because the entity_embedder and relation_embedder entries are already added for ConvE when adding the hack for the entity_bias.

toy-complex-inverse-train.yaml.zip

from kge.

rgemulla avatar rgemulla commented on August 14, 2024

The problem was not in the configuration, but in the implementation of KgeEmbedder. Fixed & hack removed. Please reopen if there are still problems.

from kge.

rgemulla avatar rgemulla commented on August 14, 2024

BTW: We should post full stack traces in the future; the trace here showed where the error occurred.

from kge.

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.