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

rasa test nlu cross validation fails with autoconfiguration #8614

Closed
1 task
tmbo opened this issue May 5, 2021 · 0 comments · Fixed by #9046
Closed
1 task

rasa test nlu cross validation fails with autoconfiguration #8614

tmbo opened this issue May 5, 2021 · 0 comments · Fixed by #9046
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss/model-testing Issues focused around testing models (e.g. via `rasa test`) effort:atom-squad/2 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@tmbo
Copy link
Member

tmbo commented May 5, 2021

Rasa version: master

Rasa SDK version (if used & relevant): -

Rasa X version (if used & relevant): -

Python version: 3.6

Operating system (windows, osx, ...): osx

Issue:

  • create a config using the autoconfiguration feature (running rasa init should get you a failing config):
# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en

pipeline:
# # No configuration for the NLU pipeline was provided. The following default pipeline was used to train your model.
# # If you'd like to customize it, uncomment and adjust the pipeline.
# # See https://rasa.com/docs/rasa/tuning-your-model for more information.
#   - name: WhitespaceTokenizer
#   - name: RegexFeaturizer
#   - name: LexicalSyntacticFeaturizer
#   - name: CountVectorsFeaturizer
#   - name: CountVectorsFeaturizer
#     analyzer: char_wb
#     min_ngram: 1
#     max_ngram: 4
#   - name: DIETClassifier
#     epochs: 100
#     constrain_similarities: true
#   - name: EntitySynonymMapper
#   - name: ResponseSelector
#     epochs: 100
#     constrain_similarities: true
#   - name: FallbackClassifier
#     threshold: 0.3
#     ambiguity_threshold: 0.1
  • run rasa test nlu --cross-validation

Error (including full traceback):

2021-05-05 18:40:50 INFO     rasa.cli.test  - Test model using cross validation.
InvalidConfigException: Can not train an empty pipeline. Make sure to specify a proper pipeline in the configuration using the 'pipeline' key.

Remove the comments (and hence not using autoconfig anymore) leads to the validation working just fine.

Definition of Done

  • rasa test nlu uses autoconfig to interpolate config files with empty pipeline keys (e.g. by using the TrainingDataImporter)
@tmbo tmbo added type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. area:rasa-oss 🎡 Anything related to the open source Rasa framework labels May 5, 2021
@TyDunn TyDunn added area:rasa-oss/model-testing Issues focused around testing models (e.g. via `rasa test`) effort:atom-squad/2 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. labels Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework area:rasa-oss/model-testing Issues focused around testing models (e.g. via `rasa test`) effort:atom-squad/2 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants