Skip to content

Commit

Permalink
Merge pull request #7575 from hotzenklotz/conf_mat_response_selector
Browse files Browse the repository at this point in the history
Amendmend to PR #7423
  • Loading branch information
dakshvar22 authored Dec 18, 2020
2 parents 7d3e6dd + 043f30d commit e59b818
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog/7575.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix scikit-learn crashing during evaluation of `ResponseSelector` predictions.
6 changes: 4 additions & 2 deletions rasa/nlu/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,11 @@ def get_eval_data(

response_prediction_full_intent = selector_properties.get(
response_prediction_key, {}
).get("full_retrieval_intent", {})
).get("full_retrieval_intent", None)

response_key = example.get_combined_intent_response_key()
response_key = None
if example.get(RESPONSE_KEY_ATTRIBUTE) is not None:
response_key = example.get_combined_intent_response_key()

response_selection_results.append(
ResponseSelectionEvaluationResult(
Expand Down

0 comments on commit e59b818

Please sign in to comment.