From 8f3d9ce8b59144569642b8343a5391d025636db1 Mon Sep 17 00:00:00 2001 From: PrimozGodec Date: Tue, 25 Jul 2023 15:23:07 +0200 Subject: [PATCH 1/2] Explain Predictions test - adopt instance order to change in SHAP --- .../explain/widgets/tests/test_owexplainpredictions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orangecontrib/explain/widgets/tests/test_owexplainpredictions.py b/orangecontrib/explain/widgets/tests/test_owexplainpredictions.py index f3b4415..23cbd14 100644 --- a/orangecontrib/explain/widgets/tests/test_owexplainpredictions.py +++ b/orangecontrib/explain/widgets/tests/test_owexplainpredictions.py @@ -233,7 +233,7 @@ def test_annotation_combo(self): self.widget.graph.set_axis.reset_mock() simulate.combobox_activate_index(self.widget._annot_combo, 1) - args = ([[(0, "4"), (1, "5"), (2, "1"), (3, "3"), (4, "2")]],) + args = ([[(0, "1"), (1, "5"), (2, "4"), (3, "3"), (4, "2")]],) self.widget.graph.set_axis.assert_called_once_with(*args) self.send_signal(self.widget.Inputs.data, None) From 4338833b6ef638cbb8b43d44d8a17b31d81a1f7c Mon Sep 17 00:00:00 2001 From: PrimozGodec Date: Tue, 25 Jul 2023 15:23:38 +0200 Subject: [PATCH 2/2] Force using SHAP version 0.42.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ad2452d..bd4f362 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ "numpy", "pyqtgraph", "scipy", - "shap >=0.42.0", + "shap >=0.42.1", "scikit-learn>=1.0.1", ]