question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

e2e evaluation raises ZeroDivisionError

See original GitHub issue

Rasa 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:closed
  • Created 4 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
melindaloubser1commented, Nov 13, 2019

Ok, thank you, that is what I was looking for (the retrieval actions NLU data example).

0reactions
erohmensingcommented, Nov 18, 2019

@wochinge did the PR close the entire issue?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found