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

Remove deprecated code blocks #5758

Merged
merged 25 commits into from
May 26, 2020
Merged

Remove deprecated code blocks #5758

merged 25 commits into from
May 26, 2020

Conversation

tmbo
Copy link
Member

@tmbo tmbo commented Apr 30, 2020

Proposed changes:

  • remove restaurant demo ("this does not represent how you'd build a restaurant bot") as it resulted in OOM trainings (which could have been fixed, but the demo isn't a good one). closes Remove restaurant bot demo #5834
  • make sure doctoc only runs on the readme
  • remove deprecated brokers (EventChannel and FileProducer, KafkaProducer, PikaProducer, SQLProducer)
  • instead of using deprecated EmbeddingIntentClassifier use DIETClassifier everywhere
  • instead of using deprecated KerasPolicy use TEDPolicy everywhere
  • instead of using deprecated pipeline templates use explicit pipelines
  • remove Agent.handle_channels
  • convert remaining deprecations to exceptions
  • remove TrackerStore.create_tracker_store
  • start raising exceptions when using a pipeline template
  • refactored ConvertFeaturizer to avoid loading pretrained tensorflow models multiple times (will now use the model loaded by ConvertTokenizer)
  • remove support for entity_examples and intent_examples section in training data
  • add cache key to HFTransformer and ConvertTokenizer to speed up testing
  • test improvements to reuse more of the trained models avoiding to many trainings
  • removed @mock_s3 annotation as it would not run the test (somehow the async would not get picked up)

closes #5178

Status (please check what you already did):

  • added some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@tmbo tmbo changed the title removed deprecated brokers2 removed deprecated brokers Apr 30, 2020
@tmbo tmbo force-pushed the removed-deprecated-classes branch from bd26ea9 to 0a725f0 Compare April 30, 2020 09:09
@tmbo tmbo force-pushed the removed-deprecated-classes branch from bca842b to 0e71a97 Compare May 12, 2020 11:10
@tmbo tmbo force-pushed the removed-deprecated-classes branch from 0e71a97 to 43e162a Compare May 12, 2020 11:11
@tmbo tmbo changed the title removed deprecated brokers Remove deprecated code blocks May 15, 2020
@tmbo tmbo requested review from degiz and alwx and removed request for degiz May 15, 2020 16:00
@tmbo tmbo force-pushed the removed-deprecated-classes branch from f8f2c9c to 1f8b9f3 Compare May 15, 2020 18:11
Removed previously deprecated classes:
- event brokers (``EventChannel`` and ``FileProducer``, ``KafkaProducer``, ``PikaProducer``, ``SQLProducer``)
- intent classifier ``EmbeddingIntentClassifier``
- policy ``KerasPolicy``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should some information about that also be added to the Migration Guide? It currently has some information about KerasPolicy and EmbeddingIntentClassifier deprecation, but nothing about the fact that these classes are removed in the new version.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that is a good point - will add something 👍

tmbo and others added 2 commits May 21, 2020 12:06
Co-authored-by: Alexander Pantiukhov <[email protected]>
Co-authored-by: Alexander Pantiukhov <[email protected]>
@tmbo
Copy link
Member Author

tmbo commented May 21, 2020

ready for another review 💯

@tmbo tmbo requested a review from alwx May 21, 2020 10:28
@tmbo tmbo merged commit f41326d into master May 26, 2020
@tmbo tmbo deleted the removed-deprecated-classes branch May 26, 2020 08:09
indam23 pushed a commit that referenced this pull request Jul 27, 2022
* removed deprecated brokers2

* removed deprecated code and fixed regex featurizer

* working on fixing tests

* working on fixing tests

* fixed test

* fixed documentation build

* working on fixing the tests

* removed restaurantbot example

* improved testing speed by using caching and avoiding duplicated model loads

* reverted some unneeded changes

* trying to fix tests

* fix moodbot model race condition in tests

* removed randomly failing test

* removed remaining instaces of EmbeddingPolicy

* Update changelog/5834.removal.rst

Co-authored-by: Alexander Pantiukhov <[email protected]>

* Update rasa/utils/common.py

Co-authored-by: Alexander Pantiukhov <[email protected]>

* Update docs/core/policies.rst

* Update tests/cli/test_cli.py

* added information to migration guide

Co-authored-by: Alexander Pantiukhov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove restaurant bot demo Remove deprecated model and pipeline options
2 participants