Skip to content

Commit

Permalink
Merge pull request #6658 from RasaHQ/sklearn
Browse files Browse the repository at this point in the history
deprecate sklearn policy
  • Loading branch information
rasabot authored Sep 14, 2020
2 parents 8e898c2 + ab10406 commit 46aec4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/6658.removal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`SklearnPolicy` was deprecated. `TEDPolicy` is the preferred machine-learning policy for dialogue models.
5 changes: 5 additions & 0 deletions rasa/core/policies/sklearn_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 46aec4c

Please sign in to comment.