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

Invalid number of query parameters #21

Open
ngocdangrby opened this issue Mar 1, 2020 · 2 comments
Open

Invalid number of query parameters #21

ngocdangrby opened this issue Mar 1, 2020 · 2 comments

Comments

@ngocdangrby
Copy link

Hi Siddhi Team,
I had meet some problems when trying to execute this guide: "Realtime predictions with pre-trained ML models"
Description:
Prob 1:
Two links may attached wrong files (in Mandatory Requirements part):

  • Pre-trained sentiment analysis tensorflow model
  • Pre-trained movie recommendation PMML model

Prob 2:
Siddhi show this error
Line: 21. Position: 24 and @ Line: 22. Position: 57. Invalid number of query parameters. Number of inputs and number of outputs are specified as 4 and 2 respectively. So the total number of query parameters should be 11 but 10 given.
When i used this query:
From FeedbackInputStream#tensorFlow:predict('/home/dang/siddhi/text_input_model/1569807768','input_ids','input_mask', 'label_ids','segment_ids', 'labels', 'probabilities',userId, movieId, reviewComment)
I think that if has 4 inputs and 2 outputs, so total number of parameters should be 4(input)+2(output)+ 1(model_path) = 7 + number of other attributes
Moreover, input.node.names and output.node.names is optional (follow this doc), so number of parameters must not exactly 11.
Below is SignatureDef of your .pb model

SignatureDef

Hope your reply soon.

@pcnfernando
Copy link
Contributor

What is the siddhi-execution-tensorflow version you are trying out?

@ngocdangrby
Copy link
Author

ngocdangrby commented Mar 1, 2020

Thank for your quick response.
I am using siddhi-execution-tensorflow 2.0.2
I tried use version 2.0.1 but backend app crash when app trying to load bert model in this guide

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