-
Notifications
You must be signed in to change notification settings - Fork 1k
WIP: sort the scores array in server.py #1733
Conversation
@@ -407,6 +407,9 @@ def predict(sender_id): | |||
try: | |||
# Fetches the appropriate bot response in a json format | |||
responses = agent.predict_next(sender_id) | |||
responses['scores'] = sorted(responses['scores'], |
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.
would you mind adding a test for this as well? (also would be great if you can update the api documentation as well as the CHANGELOG.rst)
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.
have added a test and updated the api documentation and CHANGELOG.rst
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.
@tmbo hey, can you please review the additions?
…ldeadly/rasa_core into sort-score-array-http-api
Code Climate has analyzed commit e40a41a and detected 0 issues on this pull request. View more on Code Climate. |
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.
looks great, thanks a lot for the change 🚀
#1707
Proposed changes:
score
array returned from HTTP API endpoint :-/conversations/{sender_id}/predict
training.interactive._request_action_from_user()
Status (please check what you already did):
@tmbo I have added-deleted the sort from the aforementioned places, what do you think? Also, I am confused about writing new tests for these changes, the tests already in test_server.py should suffice right? or am I missing something?