Skip to content

Commit db40b2c

Browse files
committed
set default value for weight_sparsity in response selector to 0
1 parent 9395e0c commit db40b2c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/5506.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set default value for ``weight_sparsity`` in ``ResponseSelector`` to ``0``.

rasa/nlu/selectors/response_selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def required_components(cls) -> List[Type[Component]]:
163163
# The scale of regularization
164164
REGULARIZATION_CONSTANT: 0.002,
165165
# Sparsity of the weights in dense layers
166-
WEIGHT_SPARSITY: 0.8,
166+
WEIGHT_SPARSITY: 0.0,
167167
# The scale of how important is to minimize the maximum similarity
168168
# between embeddings of different labels.
169169
NEGATIVE_MARGIN_SCALE: 0.8,

0 commit comments

Comments
 (0)