Model_confidence: linear_norm - Getting Started with Rasa / Tutorials, Resources & Videos - Rasa Community Forum

👋 Introducing the Rasa Playground

Model_confidence: linear_norm

post by laboratory on Apr 15, 2021

I always get this error every time: /home/charles/Documents/DU/chatbot/venv/lib/python3.7/site-packages/rasa/utils/train_utils.py:535: UserWarning: model_confidence is set tosoftmax. It is recommended to try usingmodel_confidence=linear_norm to make it easier to tune fallback thresholds. category=UserWarning,

But I have set model_confidence: linear_lorm in my config.yml file. How do I solve this, please?

post by humcasma on Apr 15, 2021

That is not an error, but a warning. If you prefer to use softmax, just ignore it. To avoid the warning you need to set model_confidence: linear_lorm both for the DIETClassifier and for the TEDPolicy

post by laboratory on Apr 15, 2021

Thank you but sadly, this still didn’t work. I have

and

post by humcasma on Apr 16, 2021

Are you using a ResponseSelector? If so, you also need to set model_confidence: linear_norm for it to get rid of the warning. If that is not the case, I am afraid I do not know why you get the warning. I guess the warning message could be improved to specify what component it refers to.

post by laboratory on Apr 16, 2021

Thank you. This worked. I think this was a result of poor familiarity with the documentation.