EmbeddingIntentClassifier behaviour not reproducable with DIETClassifier
See original GitHub issueProblem
The migration docs imply that the following configuration in Rasa 2.x:
- name: "DIETClassifier"
epochs: 300
hidden_layers_sizes:
text: [256, 128]
number_of_transformer_layers: 0
weight_sparsity: 0
intent_classification: True
entity_recognition: False
use_masked_language_model: False
BILOU_flag: False
random_seed: 1
should give you the same results as the following configurations in Rasa 1.x:
- name: "EmbeddingIntentClassifier"
epochs: 300
random_seed: 1
However, we have created a minimum example with moodbot that gives different results with the two configurations.
This is a high priority issue that impacts a customer who has experienced a performance drop after migrating from rasa version 1.5.1 to 2.5.0 using the above settings
Definition of Done
- Confirm whether or not the results should be identical: they shouldn’t if the Rasa version is different. See this comment.
If not:
- Make this explicit in the migration docs,
explaining why. - Communicate this the customer and create another issue to address the drop in their performance.
If the results should be identical:
- Identify the source of the discrepancy.
If it’s a bug, create an issue for the fix. - Decide whether to create a regression test to ensure identical behaviour.
If yes, create an issue for the test.: no regression test needed.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Components - Rasa
Creates features for entity extraction, intent classification, and response classification using the MITIE featurizer. note. NOT used by the ...
Read more >rasa/diet_classifier.py at main · RasaHQ/rasa - GitHub
Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, ...
Read more >Using the DIET classifier for intent classification in dialogue
A few days ago I was trying to develop an intent classifier for a bot whose backend part was almost complete. The task...
Read more >Better Intent Classification And Entity Extraction with ... - Botfront
Rasa's DIETClassifier provides state of the art performance for intent classification and entity extraction. In this post you will learn how this algorithm ......
Read more >Rasa Algorithm Whiteboard - Diet Architecture 3: Benchmarking
In this third video of the series we will benchmark different assistant pipelines using DIET. We are using the demo-bot that is on...
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 Free
Top 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
Next steps
Communicate the following to the customer: The two configurations above map to the same underlying model, and should give you the same overall results provided you are using the same rasa version. When comparing the performance of the two configs on two different rasa versions, you may notice a difference in performance. The reason is explained here.
Come up with a new suitable configuration for them.
I’ve communicated to the customer to retrain their 2.5.0 model with the updated config for DIETClassifier