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

Cycle breaking in 2.x not working as expected / different from 1.x #7985

Closed
indam23 opened this issue Feb 17, 2021 · 5 comments
Closed

Cycle breaking in 2.x not working as expected / different from 1.x #7985

indam23 opened this issue Feb 17, 2021 · 5 comments
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@indam23
Copy link
Contributor

indam23 commented Feb 17, 2021

Rasa version: 2.3.0

Python version: 3.7.9

Issue:

Given the stories with a cyclical checkpoint below, in rasa 1.10.x, 14 trackers are found, while in Rasa 2.3.0, 16 trackers are found. The increase in trackers in 2.3 vs 1.10 remains with higher numbers of max_history

Based on debug plots it appears that cycle breaking is not working as expected.

Error (including full traceback): rasa==2.3.0

2021-02-17 19:43:31 DEBUG rasa.shared.core.generator - Data generation rounds finished. 2021-02-17 19:43:31 DEBUG rasa.shared.core.generator - Found 0 unused checkpoints 2021-02-17 19:43:31 DEBUG rasa.shared.core.generator - Found 16 training trackers. 2021-02-17 19:43:31 DEBUG rasa.shared.core.generator - No rules found. 2021-02-17 19:43:31 DEBUG rasa.core.agent - Agent trainer got kwargs: {} 2021-02-17 19:43:31 DEBUG rasa.core.featurizers.tracker_featurizers - Creating states and action examples from collected trackers (by MaxHistoryTrackerFeaturizer(SingleStateFeaturizer))... Processed trackers: 100%|███████████████████████████████████████| 16/16 00:00<00:00, 551.10it/s, # actions=40 2021-02-17 19:43:31 DEBUG rasa.core.featurizers.tracker_featurizers - Created 40 action examples.

rasa==1.10.3

2021-02-17 19:44:41 DEBUG rasa.core.training.generator - Data generation rounds finished. 2021-02-17 19:44:41 DEBUG rasa.core.training.generator - Found 0 unused checkpoints 2021-02-17 19:44:41 DEBUG rasa.core.training.generator - Found 14 training trackers. 2021-02-17 19:44:41 DEBUG rasa.core.agent - Agent trainer got kwargs: {} 2021-02-17 19:44:41 DEBUG rasa.core.featurizers - Creating states and action examples from collected trackers (by MaxHistoryTrackerFeaturizer(LabelTokenizerSingleStateFeaturizer))... Processed trackers: 100%|███████████████████████████████████████| 14/14 00:00<00:00, 437.82it/s, # actions=40 2021-02-17 19:44:41 DEBUG rasa.core.featurizers - Created 40 action examples.

Command or request that led to error:

rasa train core --debug --augmentation 0 --debug-plots

Stories:

## intro

*   intro

*   action_intro
     > first_checkpoint

1\. 1\. first
 > first_checkpoint

*   slot {"random": "true"}
*   action_continue
     > cycle_checkpoint

1\. 1\. cycle
 > cycle_checkpoint

*   inform {"entity1":"something"}

 OR inform

 {"entity2":"somethingelse"} 

*   action_check
*   slot {"pass": "true"}
*   action_cycle
*   action_cycle_2
     > resolution

1\. 1\. break
 > cycle_checkpoint

*   inform {"entity1":"something"}

 OR inform

 {"entity2":"somethingelse"} 

*   action_check
*   slot {"pass": null}
*   action_break_cycle
     > cycle_checkpoint

1\. 1\. resolve
 > resolution

*   resolve

*   action_resolve

Content of configuration file (config.yml) (if relevant):

policies:

*   name: TEDPolicy
     epochs: 1
     max_history: 4
     pipeline:
     language:

Content of domain file (domain.yml) (if relevant):

intents:

*   intro
*   inform
*   resolve

entities:

*   entity1
*   entity2

actions:

*   action_intro
*   action_continue
*   action_step
*   action_check
*   action_cycle
*   action_cycle_2
*   action_break_cycle
*   action_resolve

slots:
 pass:
 type: categorical 
 values:

*   "true"
*   "other"
     random:
     type: categorical
     values:
*   "true"
     

Debug plot for 1.10:

Debug plot for 2.3:

@indam23 indam23 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 Feb 17, 2021
@Ghostvv
Copy link
Contributor

Ghostvv commented Feb 17, 2021

Exalate commented:

Ghostvv commented:

I think it might be related to

self.id = "{}_{}".format(STEP_COUNT, uuid.uuid4().hex)

@Ghostvv
Copy link
Contributor

Ghostvv commented Feb 17, 2021

Exalate commented:

Ghostvv commented:

most probably, both graphs are correct. Just global step changed, so ordering behaves differently.

Though the fact that the second graph still has a cycle, looks suspicious

@Ghostvv
Copy link
Contributor

Ghostvv commented Feb 18, 2021

Exalate commented:

Ghostvv commented:

when I substituted self.id = uuid.uuid4().hex, it sometimes creates one graph, sometimes another

@stale
Copy link

stale bot commented Jul 21, 2021

Exalate commented:

stale[bot] commented:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 21, 2021
@rasabot-exalate rasabot-exalate added area:rasa-oss and removed 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 Mar 15, 2022 — with Exalate Issue Sync
@stale stale bot removed the stale label Mar 15, 2022
@rasabot rasabot added area:rasa-oss 🎡 Anything related to the open source Rasa framework and removed area:rasa-oss labels Mar 16, 2022
@rasabot-exalate rasabot-exalate added area:rasa-oss :ferris wheel: stale and removed area:rasa-oss 🎡 Anything related to the open source Rasa framework labels Mar 17, 2022 — with Exalate Issue Sync
@stale stale bot removed stale labels Mar 17, 2022
@rasabot-exalate rasabot-exalate added area:rasa-oss 🎡 Anything related to the open source Rasa framework stale and removed area:rasa-oss :ferris wheel: labels Mar 17, 2022 — with Exalate Issue Sync
@stale stale bot removed the stale label Mar 17, 2022
@m-vdb m-vdb added the type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. label Oct 10, 2022
@sync-by-unito
Copy link

sync-by-unito bot commented Dec 19, 2022

➤ Maxime Verger commented:

💡 Heads up! We're moving issues to Jira: https://rasa-open-source.atlassian.net/browse/OSS.

From now on, this Jira board is the place where you can browse (without an account) and create issues (you'll need a free Jira account for that). This GitHub issue has already been migrated to Jira and will be closed on January 9th, 2023. Do not forget to subscribe to the corresponding Jira issue!

➡️ More information in the forum: https://forum.rasa.com/t/migration-of-rasa-oss-issues-to-jira/56569.

@m-vdb m-vdb closed this as completed Jan 9, 2023
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 type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

5 participants