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

fix 'rasa test core' #4094

Merged
merged 23 commits into from Jul 26, 2019
Merged

fix 'rasa test core' #4094

merged 23 commits into from Jul 26, 2019

Conversation

tabergma
Copy link
Contributor

@tabergma tabergma commented Jul 24, 2019

Proposed changes:

  • Add flag --evaluate-models-in-dir to test command rasa test core to be able to compare models that were trained via rasa train core -c <config-1> <config-2>
  • rasa test core can handle compressed model files
  • moved utils methods (list_files, list_subdirectories, list_directory, create_dir) from rasa.nlu.utils to rasa.utils.io

closes #4016

Status (please check what you already did):

  • made PR ready for code review
  • added some tests for the functionality
  • updated the documentation
  • updated the changelog
  • reformat files using black (please check Readme for instructions)

@tabergma tabergma changed the title Rasa core comparision fix 'rasa test core' Jul 24, 2019
@tabergma tabergma self-assigned this Jul 24, 2019
@tabergma
Copy link
Contributor Author

The test is failing as the models are not properly trained right now. I guess something went wrong in one of the merge commits. Need to find the bug. Will let you know, once it is fixed.

@tabergma
Copy link
Contributor Author

@arthurTemporim @wochinge Issue is solved. Ready for review.

rasa/cli/arguments/test.py Show resolved Hide resolved
rasa/cli/test.py Outdated Show resolved Hide resolved
rasa/core/test.py Outdated Show resolved Hide resolved
rasa/core/test.py Outdated Show resolved Hide resolved
rasa/core/test.py Show resolved Hide resolved
rasa/test.py Outdated Show resolved Hide resolved
rasa/test.py Outdated Show resolved Hide resolved
rasa/utils/io.py Outdated Show resolved Hide resolved
docs/user-guide/evaluating-models.rst Outdated Show resolved Hide resolved
rasa/core/test.py Show resolved Hide resolved
Copy link
Contributor

@wochinge wochinge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great pr, great quality 🥇
I'm a bit fixated on spelling things out, sorry for that 🙈
(btw training works now out of the box for me 😄 )

@tabergma tabergma merged commit ad41208 into master Jul 26, 2019
@tabergma tabergma deleted the rasa-core-comparision branch July 26, 2019 11:11
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

Successfully merging this pull request may close these issues.

Rasa Core comparison mode does not work with tar models
2 participants