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.

EmbeddingIntentClassifier behaviour not reproducable with DIETClassifier

See original GitHub issue

Problem

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
aeshkycommented, Jul 7, 2021

Next steps

  1. 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.

  2. Come up with a new suitable configuration for them.

1reaction
hsm207commented, Jul 7, 2021

I’ve communicated to the customer to retrain their 2.5.0 model with the updated config for DIETClassifier

Read more comments on GitHub >

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

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