From 23b69f35b03d35b1f77ea9715c81941795707994 Mon Sep 17 00:00:00 2001 From: Ella Date: Mon, 14 Sep 2020 14:05:50 +0200 Subject: [PATCH 1/2] deprecate sklearn policy --- rasa/core/policies/sklearn_policy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rasa/core/policies/sklearn_policy.py b/rasa/core/policies/sklearn_policy.py index 29d2fc66b53b..9f7bedd7da7b 100644 --- a/rasa/core/policies/sklearn_policy.py +++ b/rasa/core/policies/sklearn_policy.py @@ -118,6 +118,11 @@ def __init__( self._train_params = kwargs self.zero_state_features = zero_state_features or defaultdict(list) + rasa.shared.utils.io.raise_deprecation_warning( + f"'{SklearnPolicy.__name__}' is deprecated and will be removed in " + "the future. It is recommended to use the 'TEDPolicy' instead." + ) + @staticmethod def _default_model() -> Any: return LogisticRegression(solver="liblinear", multi_class="auto") From e8f3591290ec0de2ccc69a0657488a06d148e531 Mon Sep 17 00:00:00 2001 From: Ella Date: Mon, 14 Sep 2020 14:08:00 +0200 Subject: [PATCH 2/2] add changelog entry --- changelog/6658.removal.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/6658.removal.md diff --git a/changelog/6658.removal.md b/changelog/6658.removal.md new file mode 100644 index 000000000000..fa26cd9036bc --- /dev/null +++ b/changelog/6658.removal.md @@ -0,0 +1 @@ +`SklearnPolicy` was deprecated. `TEDPolicy` is the preferred machine-learning policy for dialogue models.