From 4a22dd03a7f626776005bcffda18d9cf3044d2e0 Mon Sep 17 00:00:00 2001 From: Vesna Tanko Date: Thu, 13 Jun 2024 12:00:10 +0200 Subject: [PATCH] ICE: partial_dependence returns grid_values --- orangecontrib/explain/inspection.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orangecontrib/explain/inspection.py b/orangecontrib/explain/inspection.py index 93e7e56..1c030ba 100644 --- a/orangecontrib/explain/inspection.py +++ b/orangecontrib/explain/inspection.py @@ -228,7 +228,7 @@ def dummy_fit(*_, **__): if data.domain.has_discrete_class and \ len(data.domain.class_var.values) == 2: results = {"average": np.vstack([1 - dep["average"], dep["average"]]), - "values": dep["values"][0]} + "values": dep["grid_values"][0]} if kind == "both": results["individual"] = \ np.vstack([1 - dep["individual"], dep["individual"]]) diff --git a/setup.py b/setup.py index 317c610..17be0b1 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ "pyqtgraph", "scipy", "shap >=0.42.1", - "scikit-learn>=1.0.1", + "scikit-learn>=1.3.0", ] EXTRAS_REQUIRE = {