Skip to content

Commit

Permalink
Fix np.NAN into np.nan
Browse files Browse the repository at this point in the history
Signed-off-by: xadupre <[email protected]>
  • Loading branch information
xadupre committed Dec 19, 2024
1 parent f41ffd8 commit 4f20554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skl2onnx/operator_converters/power_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def convert_powertransformer(
y_gr0 = OnnxImputer(
y_gr0,
imputed_value_floats=[0.0],
replaced_value_float=np.NAN,
replaced_value_float=getattr(np. "nan", getattr(np, "NAN")),
op_version=opv,
)
y_gr0 = OnnxMul(y_gr0, greater_mask, op_version=opv)
Expand All @@ -104,7 +104,7 @@ def convert_powertransformer(
y_le0 = OnnxImputer(
y_le0,
imputed_value_floats=[0.0],
replaced_value_float=np.NAN,
replaced_value_float=getattr(np. "nan", getattr(np, "NAN")),
op_version=opv,
)
y_le0 = OnnxMul(y_le0, less_mask, op_version=opv)
Expand All @@ -130,7 +130,7 @@ def convert_powertransformer(
y_gr0_l_eq0 = OnnxImputer(
y_gr0_l_eq0,
imputed_value_floats=[0.0],
replaced_value_float=np.NAN,
replaced_value_float=getattr(np. "nan", getattr(np, "NAN")),
op_version=opv,
)
y_gr0_l_eq0 = OnnxMul(y_gr0_l_eq0, lambda_zero_mask, op_version=opv)
Expand Down

0 comments on commit 4f20554

Please sign in to comment.