e2e evaluation raises ZeroDivisionError
See original GitHub issueRasa version: 1.3.6
Python version: 3.6
Operating system (windows, osx, …): osx
Issue:
e2e story evaluation always raises ZeroDivisionError
Error (including full traceback):
Processed Story Blocks: 0it [00:00, ?it/s]
2019-09-25 15:30:06 WARNING rasa.core.training.generator - There is no starting story block in the training data. All your story blocks start with some checkpoint. There should be at least one story block that starts without any checkpoint.
2019-09-25 15:30:06 INFO rasa.core.test - Evaluating 0 stories
Progress:
0it [00:00, ?it/s]
2019-09-25 15:30:06 INFO rasa.core.test - Finished collecting predictions.
2019-09-25 15:30:06 WARNING rasa.nlu.test - No labels to evaluate. Skip evaluation.
Traceback (most recent call last):
File "/Users/ric/.envs/platform/bin/rasa", line 11, in <module>
load_entry_point('rasa', 'console_scripts', 'rasa')()
File "/Users/ric/dev/rasa/rasa/__main__.py", line 76, in main
cmdline_arguments.func(cmdline_arguments)
File "/Users/ric/dev/rasa/rasa/cli/test.py", line 88, in test_core
kwargs=vars(args),
File "/Users/ric/dev/rasa/rasa/test.py", line 108, in test_core
rasa.core.test(stories, _agent, out_directory=output, **kwargs)
File "uvloop/loop.pyx", line 1448, in uvloop.loop.Loop.run_until_complete
File "/Users/ric/dev/rasa/rasa/core/test.py", line 483, in test
completed_trackers, agent, fail_on_prediction_errors, e2e
File "/Users/ric/dev/rasa/rasa/core/test.py", line 430, in collect_story_predictions
in_training_data_fraction = _in_training_data_fraction(action_list)
File "/Users/ric/dev/rasa/rasa/core/test.py", line 383, in _in_training_data_fraction
return len(in_training_data) / len(action_list)
ZeroDivisionError: division by zero
Command or request that led to error:
$ rasa test core --stories e2e.md --e2e
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Forcing intent selection and entities recognition during e2e ...
I am trying to use rasa test --stories e2e_stories.md --e2e to ... a bug report here: e2e evaluation raises ZeroDivisionError · Issue #4520 ......
Read more >Error python : [ZeroDivisionError: division by zero]
Returning zero instead of the division by zero error can be accomplished with a Boolean operation. z = y and (x / y)....
Read more >pytest Documentation - Read the Docs
with pytest.raises(ZeroDivisionError): ... evaluating the parsed examples as part of your normal test run.
Read more >Python Testing 101: pytest - Automation Panda
with pytest.raises(ZeroDivisionError) as e: divide(NUMBER_1, 0) ... Pingback: Book Review: Python Testing with pytest | Automation Panda.
Read more >How to Write Independent Unit Test with Pytest and Mock ...
This is also a good and straightforward way to evaluate its independency. ... Here, we use pytest.raises as a context manager to capture...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, thank you, that is what I was looking for (the retrieval actions NLU data example).
@wochinge did the PR close the entire issue?