Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved model is showing wrong prediction when running separately in Question Answering task #9

Open
anis016 opened this issue Jul 8, 2018 · 1 comment

Comments

@anis016
Copy link

anis016 commented Jul 8, 2018

I was checking out Question and Answering using Dynamic Memory Network (DMN) for BabI dataset from this source: 10.Dynamic-Memory-Network-for-Question-Answering.ipynb

I modified it above a bit so that I can save the model and later run the prediction/inference separately. src: dmn_babi.ipynb and I saved my model as 'dmn_qa'. Moreover, the inference is showing correctly when I am running wholly from the Ipython Notebook.

Later I added 2 separate files which are

  1. model.py - contains the DMN model, src: model.py
  2. prediction.py - contains the loading of the model and inference part of the code. src: predict.py

However, when I run the prediction part now the output is not coming correctly. Please help, where I am doing wrong here.

Best Regards

@ghks4098
Copy link

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants