From 11ee203de706c569dc4133b82884b1eb35f60eb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Dupr=C3=A9?= Date: Thu, 20 Feb 2025 17:07:41 +0100 Subject: [PATCH] Fix ruff, update CHANGELOGS (#1166) * Fix ruff Signed-off-by: xadupre * fix changelogs Signed-off-by: xadupre --------- Signed-off-by: xadupre --- CHANGELOGS.md | 2 ++ skl2onnx/_supported_operators.py | 2 +- skl2onnx/common/_container.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOGS.md b/CHANGELOGS.md index f64a0b030..4c2b1cf67 100644 --- a/CHANGELOGS.md +++ b/CHANGELOGS.md @@ -2,6 +2,8 @@ ## 1.19.0 +* Add support to sklearn TargetEncoder + [#1137](https://github.com/onnx/sklearn-onnx/issues/1137) * Fixes missing WhiteKernel with return_std=True #1163 [#1163](https://github.com/onnx/sklearn-onnx/issues/1163) * Fix empty column selector diff --git a/skl2onnx/_supported_operators.py b/skl2onnx/_supported_operators.py index 77fa184ec..45ff50f66 100644 --- a/skl2onnx/_supported_operators.py +++ b/skl2onnx/_supported_operators.py @@ -604,7 +604,7 @@ def _get_sklearn_operator_name(model_type): :return: A string which stands for the type of the input model in our conversion framework """ - if model_type not in sklearn_operator_name_map: # noqa: SIM401 + if model_type not in sklearn_operator_name_map: # No proper operator name found, it means a local operator. alias = None else: diff --git a/skl2onnx/common/_container.py b/skl2onnx/common/_container.py index c344c7806..9ca6a1afc 100644 --- a/skl2onnx/common/_container.py +++ b/skl2onnx/common/_container.py @@ -732,7 +732,7 @@ def add_node( def target_opset_any_domain(self, domain): target_opset = self.target_opset_all if isinstance(target_opset, dict): - if domain in target_opset: # noqa: SIM401 + if domain in target_opset: to = target_opset[domain] else: to = None