wip (fix/convert_conf): fix conf
@@ -95,7 +95,7 @@ def encode_context(dialogue_history):
def approximate_confidence(confidence, approximate_confidence_is_enabled=True):
if approximate_confidence_is_enabled:
- return (confidences <= confidence).sum() / len(confidences)
+ return 0.85 * (confidences <= confidence).sum() / len(confidences)
else:
return float(confidence)
