From d46cceec721089a7bc16c24ada0dac12f6582730 Mon Sep 17 00:00:00 2001 From: Vova Vv Date: Thu, 26 Mar 2020 15:49:24 +0100 Subject: [PATCH 1/2] set default value for weight_sparsity in response selector to 0 --- rasa/nlu/selectors/response_selector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasa/nlu/selectors/response_selector.py b/rasa/nlu/selectors/response_selector.py index cec49ea80e6d..b8b4c6081228 100644 --- a/rasa/nlu/selectors/response_selector.py +++ b/rasa/nlu/selectors/response_selector.py @@ -171,7 +171,7 @@ def required_components(cls) -> List[Type[Component]]: # The scale of regularization REGULARIZATION_CONSTANT: 0.002, # Sparsity of the weights in dense layers - WEIGHT_SPARSITY: 0.8, + WEIGHT_SPARSITY: 0.0, # The scale of how important is to minimize the maximum similarity # between embeddings of different labels. NEGATIVE_MARGIN_SCALE: 0.8, From 7bb3a5d73e26c4ffbe2325c9f0998b27c988bad8 Mon Sep 17 00:00:00 2001 From: Vova Vv Date: Thu, 26 Mar 2020 15:50:25 +0100 Subject: [PATCH 2/2] add changelog --- changelog/5505.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/5505.bugfix.rst diff --git a/changelog/5505.bugfix.rst b/changelog/5505.bugfix.rst new file mode 100644 index 000000000000..78b30174cb8e --- /dev/null +++ b/changelog/5505.bugfix.rst @@ -0,0 +1 @@ +Set default value for ``weight_sparsity`` in ``ResponseSelector`` to ``0``. \ No newline at end of file