Skip to content

Commit

Permalink
Replicate error message formatting change
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Bodnar <[email protected]>
  • Loading branch information
bodnarbm committed Sep 5, 2024
1 parent a3b6b0b commit 09ee0fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions skl2onnx/operator_converters/imputer_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ def convert_sklearn_imputer(
and op.fill_value.lower() != "nan"
):
raise RuntimeError(
"Imputer cannot fill missing values with a "
"string '%s'." % op.fill_value
"Imputer cannot fill missing values with a string '%s'." % op.fill_value
)
if isinstance(operator.inputs[0].type, Int64TensorType):
attrs["imputed_value_int64s"] = op.statistics_.astype(np.int64)
Expand Down

0 comments on commit 09ee0fa

Please sign in to comment.