Skip to content

Commit 31f773a

Browse files
committed
Merge branch 'rasa-info-command' of github.com:RasaHQ/rasa into rasa-info-command
2 parents 43bed03 + 05b3fda commit 31f773a

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

changelog/5717.improvement.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Change default values for hyper-parameters in ``EmbeddingIntentClassifier`` and ``DIETClassifier``
2+
3+
Use ``scale_loss=False`` in ``DIETClassifier``. Reduce the number of dense dimensions for sparse features of text from 512 to 256 in ``EmbeddingIntentClassifier``.

docs/nlu/components.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ EmbeddingIntentClassifier
883883
+---------------------------------+------------------+--------------------------------------------------------------+
884884
| embedding_dimension | 20 | Dimension size of embedding vectors. |
885885
+---------------------------------+------------------+--------------------------------------------------------------+
886-
| dense_dimension | text: 512 | Dense dimension for sparse features to use if no dense |
886+
| dense_dimension | text: 256 | Dense dimension for sparse features to use if no dense |
887887
| | label: 20 | features are present. |
888888
+---------------------------------+------------------+--------------------------------------------------------------+
889889
| number_of_negative_examples | 20 | The number of incorrect labels. The algorithm will minimize |
@@ -1702,7 +1702,7 @@ DIETClassifier
17021702
| | | over incorrect intent labels, used only if 'loss_type' is |
17031703
| | | set to 'margin'. |
17041704
+---------------------------------+------------------+--------------------------------------------------------------+
1705-
| scale_loss | True | Scale loss inverse proportionally to confidence of correct |
1705+
| scale_loss | False | Scale loss inverse proportionally to confidence of correct |
17061706
| | | prediction. |
17071707
+---------------------------------+------------------+--------------------------------------------------------------+
17081708
| regularization_constant | 0.002 | The scale of regularization. |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exclude = "((.eggs | .git | .pytype | .pytest_cache | build | dist))"
99

1010
[tool.poetry]
1111
name = "rasa"
12-
version = "1.9.7"
12+
version = "1.10.0a3"
1313
description = "Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants"
1414
authors = [ "Rasa Technologies GmbH <[email protected]>",]
1515
maintainers = [ "Tom Bocklisch <[email protected]>",]

rasa/nlu/classifiers/diet_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def required_components(cls) -> List[Type[Component]]:
189189
USE_MAX_NEG_SIM: True,
190190
# If 'True' scale loss inverse proportionally to the confidence
191191
# of the correct prediction
192-
SCALE_LOSS: True,
192+
SCALE_LOSS: False,
193193
# ## Regularization parameters
194194
# The scale of regularization
195195
REGULARIZATION_CONSTANT: 0.002,

rasa/nlu/classifiers/embedding_intent_classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def required_components(cls) -> List[Type[Component]]:
9393
# Dimension size of embedding vectors
9494
EMBEDDING_DIMENSION: 20,
9595
# Default dense dimension to use if no dense features are present.
96-
DENSE_DIMENSION: {TEXT: 512, LABEL: 20},
96+
DENSE_DIMENSION: {TEXT: 256, LABEL: 20},
9797
# The number of incorrect labels. The algorithm will minimize
9898
# their similarity to the user input during training.
9999
NUM_NEG: 20,

rasa/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# this file will automatically be changed,
22
# do not add anything but the version number here!
3-
__version__ = "1.9.7"
3+
__version__ = "1.10.0a3"

0 commit comments

Comments
 (0)