Browse Source

[FIX] Fix error message formatting in Reasoner class

pull/5/head
Tony-HYX 1 year ago
parent
commit
896e61298d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      abl/reasoning/reasoner.py

+ 1
- 1
abl/reasoning/reasoner.py View File

@@ -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):


Loading…
Cancel
Save