New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the constrain_similarities
warning in the CI Tests
#8144
Comments
constrain_similarities
warning in the CI Testsconstrain_similarities
warning in the CI Tests
Exalate commented: iurisevero commented: Hey there, I worked a little on this issue and it looks like changing the default value of All UserWarning: constrain_similarities is set to False. It is recommended to set it to True... warnings have gone and the CI passed, so I don't think it broke anything. |
Exalate commented: rgstephens commented: Under Does this mean the default is set to false? |
Exalate commented: Imod7 commented: Yes! The default is set to False and for the time being this cannot be changed until Rasa 3.0 because as the research team mentioned this would require also changes in the default loss function. |
Python version: Python 3.6 Python 3.7 Python 3.8
Operating system (windows, osx, ...): Ubuntu Windows
Issue: This Issue is part of the effort to close the Issue#7738 hence to reduce the amount of warnings that are raised when running all tests in the CI. From a first investigation, it seems that this warning ( UserWarning: constrain_similarities is set to
False
. It is recommended to set it toTrue
... ) for which the current Issue was opened, had 160 occurrences but in a latest CI run it appears in only 76 tests.Warning (including full traceback):
2021-03-09T05:38:55.1847117Z rasa/utils/train_utils.py:451: 76 tests with warnings 2021-03-09T05:38:55.1848852Z /home/runner/work/rasa/rasa/rasa/utils/train_utils.py:451: UserWarning: constrain_similarities is set to
False
. It is recommended to set it toTrue
when using cross-entropy loss. It will be set toTrue
by default, Rasa Open Source 3.0.0 onwards.Possible Solutions:
CONSTRAIN_SIMILARITIES
is set toFalse
so maybe setting it toTrue
eliminates the warning.Command or request that led to error:
pytest tests/core/policies/test_ted_policy.py::TestTEDPolicyMargin::test_normalization pytest tests/core/policies/test_ted_policy.py::TestTEDPolicyMargin::test_prediction_on_empty_tracker pytest tests/nlu/classifiers/test_diet_classifier.py::test_check_labels_features_exist pytest tests/nlu/test_evaluation.py::test_response_selector_present
Definition of Done:
constrain_similarities
warning appears in only the cases where it is explicitly tested forFalse
.constrain_similarities
takes a default value then this should be the recommended one.The text was updated successfully, but these errors were encountered: