Skip to content

Commit

Permalink
ICE: partial_dependence returns grid_values
Browse files Browse the repository at this point in the history
  • Loading branch information
VesnaT committed Jun 13, 2024
1 parent 27c897e commit 4a22dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orangecontrib/explain/inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]])
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"pyqtgraph",
"scipy",
"shap >=0.42.1",
"scikit-learn>=1.0.1",
"scikit-learn>=1.3.0",
]

EXTRAS_REQUIRE = {
Expand Down

0 comments on commit 4a22dd0

Please sign in to comment.