This commit is contained in:
Matthias Bisping 2022-03-30 01:06:06 +02:00
parent 45a07c620a
commit 95209a5c9d

View File

@ -26,7 +26,7 @@ class Classifier:
def __validate_array_prediction_format(self, prediction):
if not len(prediction) == len(self._classes):
raise UnexpectedPredictionFormat(
f"Received fewer probabilities ({len(prediction)}) than classes were specified ({len(self._classes)}."
f"Received fewer probabilities ({len(prediction)}) than classes were specified ({len(self._classes)})."
)
def __validate_int_prediction_format(self, prediction):