From 896e61298d358988176ebbd2cadaa6087ed8507f Mon Sep 17 00:00:00 2001 From: Tony-HYX <605698554@qq.com> Date: Sat, 6 Jan 2024 15:33:38 +0800 Subject: [PATCH] [FIX] Fix error message formatting in Reasoner class --- abl/reasoning/reasoner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abl/reasoning/reasoner.py b/abl/reasoning/reasoner.py index 630c402..6d35729 100644 --- a/abl/reasoning/reasoner.py +++ b/abl/reasoning/reasoner.py @@ -77,7 +77,7 @@ class Reasoner: if dist_func not in ["hamming", "confidence", "avg_confidence"]: raise NotImplementedError( 'Valid options for predefined dist_func include "hamming" ' - + f' "confidence" and "avg_confidence", but got {dist_func}.' + + f'"confidence" and "avg_confidence", but got {dist_func}.' ) return elif callable(dist_func):