-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
GraphComponentException if hidden_layers_size
used with only one (text) overwritten key
#10391
Comments
Thanks for raising this issue, @jupyterjazz will get back to you about it soon✨ Please also check out the docs and the forum in case your issue was raised there too 🤗 |
@dakshvar22 any thoughts about what might have happened here? |
@dakshvar22 why'd you restrict this to just ML components? Am I missing sth about the nature of how these params are specified? |
@koernerfelicia Mainly because those are the only components where a configuration parameter can have a dictionary of values with keys as some text and values being a list / scalar. The above reported issue suggests a problem with those kind of configuration parameters. |
@koernerfelicia is reviewer |
The config of
(i.e. not specifying the other available keys, such as rasa.engine.exceptions.GraphComponentException: Error running graph component for node train_UnexpecTEDIntentPolicy2.
File "/Users/matthias/Workspace/rasa3/rasa/utils/tensorflow/rasa_layers.py", line 291, in <listcomp>
config[DENSE_DIMENSION][attribute]
KeyError: 'action_name' I was not able to reproduce the same behaviour for This suggests that the issue comes from the general setting of parameters if they contain nested dictionaries and not all keys are specified. The errors that surface then could be related to whether the component actually tries to use those missing entries and needs further investigation. |
Thanks for the update!
I think that this means we shouldn't constrain the investigation to ML components. CountVectorsFeaturizer for example allows for nested dictionaries:
Haven't looked into the PRs you linked, so it's possible the solution is general enough to cover non-ML components as well. |
Hi, thanks for the feedback! In that case I'll also check the |
Scheduled for next upcoming micro release with Enable squat. |
@mleimeister you can close the issue when the PR is merged, you don't have to wait for it to be released! I believe the "Fixes" keyword only closes the associated issue if the PR targets |
Rasa Open Source version
3.0.0
Rasa SDK version
3.0.0
Rasa X version
No response
Python version
3.8
What operating system are you using?
Windows
What happened?
I wanted to train a migrated AI with the following config for
DIETClassifier
:The result was the following error:
followed by
rasa.engine.exceptions.GraphComponentException: Error running graph component for node train_DIETClassifier5.
After digging into it, it seems to me, that even if the documentation sais:
it is not enough to specify only one of the keys. After changing the config to:
everything worked fine. I am not absolutely sure but this worked in Rasa
2.8.x
.Command / Request
No response
Relevant log output
Definition of Done:
3.0.x
The text was updated successfully, but these errors were encountered: