-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
add normalisation to confidence scores #4902
Conversation
@Ghostvv started a PR on this, few questions before I polish it up and request a review:
|
I would use |
as zero 😂 No i haven't tested yet, i still need to do that. just wanted to get what i had done on a PR first |
I don't think this shouldn't go into a patch release, please change the base to |
@akelad could you please add normalization to EmbeddingPolicy as well? |
a171132
to
606e578
Compare
@Ghostvv I think it is just as easy to make the number configurable as to make it a boolean -- i've implemented it as such here (same for embedding policy), where 0 is no normalization. with respect to how to report the other intents, do you think it makes sense just to always report the number of intents that we have normalized, if we normalized them (essentially doing Missed that you wanted to have it default:true, but figured i can wait to change that once we decide what the default number should be. Included histograms for sara, scores definitely become more intuitive with some level or normalization, just don't know how far to go with it |
@Ghostvv @erohmensing What's the state with this? Are you still planning to get this into Rasa 1.6? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to introduce it to response selector as well. Please add docs
Everything should be implemented -- could use a few tests, let me know if you have any idea how to go about those (could count the number of non-zero actions and the length of the intent output)? Also feel free to change how I've explained it because 🤷♂ Would really like to get this on the train 🚋 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please add tests, we could create a couple of classifiers/policies, where we set different ranking_length (including 0
) and check that the output is how we like it
sorry, accidentally reviewed old commit, but comments are still valid |
@erohmensing @Ghostvv I'm sorry, but this missed the release train. |
Proposed changes:
Status (please check what you already did):
black
(please check Readme for instructions)