Git Product home page Git Product logo

Comments (11)

apoorvumang avatar apoorvumang commented on July 17, 2024

Can you share what command you ran, and a screenshot of whatever you saw when you ran the command?

from embedkgqa.

Ironeie avatar Ironeie commented on July 17, 2024

I ran the following code successfully
python3 main.py --mode train --relation_dim 200 --hidden_dim 256 \ --gpu 3 --freeze 0 --batch_size 128 --validate_every 5 --hops 2 --lr 0.0005 --entdrop 0.1 --reldrop 0.2 --scoredrop 0.2 \ --decay 1.0 --model ComplEx --patience 5 --ls 0.0 --kg_type full
But when I wanna get the test score and ran the following code:
python3 main.py --mode eval --relation_dim 200 --hidden_dim 256 \ --gpu 3 --freeze 0 --batch_size 128 --validate_every 5 --hops 2 --lr 0.0005 --entdrop 0.1 --reldrop 0.2 --scoredrop 0.2 \ --decay 1.0 --model ComplEx --patience 5 --ls 0.0 --kg_type full
It didin't work, and the error message was as follows:
Traceback (most recent call last): File "main.py", line 361, in <module> embedding_dim=args.embedding_dim) TypeError: eval() takes no keyword arguments
which I think is because there's no eval function in main.py, is there?

from embedkgqa.

apoorvumang avatar apoorvumang commented on July 17, 2024

Yes, eval function isn't there, but eval happens when running the train command. What output did you get when you ran the train command?

from embedkgqa.

Ironeie avatar Ironeie commented on July 17, 2024

Model has exceed patience. Saving best model and exiting.
And there isn't any score message

from embedkgqa.

Ironeie avatar Ironeie commented on July 17, 2024

There IS validation accuracy, but no test accuracy

from embedkgqa.

apoorvumang avatar apoorvumang commented on July 17, 2024

Please see issue #14. Whenever validation accuracy increases it finds and prints the test accuracy. If this still doesn't work, please let me know.

from embedkgqa.

Ironeie avatar Ironeie commented on July 17, 2024

Thank you for your reply, I've understood. When I train on KG-50, it can be shown normally. When I train on KG-Full, the best test score appears at the first epoch, therefore no test score is shown. For convenience, will you give the eval function and online QA code in the future?

from embedkgqa.

apoorvumang avatar apoorvumang commented on July 17, 2024

Yes, I'll create a new issue about having separate eval function. What do you mean by online QA code?

from embedkgqa.

Ironeie avatar Ironeie commented on July 17, 2024

It means when inputing a question, output an answer, which realizes a question answering process.

from embedkgqa.

apoorvumang avatar apoorvumang commented on July 17, 2024

Got it. Can you please create a new issue with relevant title for this? I will close this one. It will be easier to resolve that way. Thanks.

from embedkgqa.

Ironeie avatar Ironeie commented on July 17, 2024

All right

from embedkgqa.

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.