Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions python/cuml/tests/explainer/test_explainer_kernel_shap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# SPDX-FileCopyrightText: Copyright (c) 2020-2025, NVIDIA CORPORATION.
# SPDX-FileCopyrightText: Copyright (c) 2020-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0
#

Expand Down Expand Up @@ -346,7 +346,11 @@ def test_typeerror_input():
try:
exp.shap_values(X)
except ValueError as error:
if "operands could not be broadcast together" in str(error):
error_str = str(error)
if (
"operands could not be broadcast together" in error_str
or "dimension must be fixed to" in error_str
):
pytest.xfail(
"Known sklearn LARS broadcasting bug - see scikit-learn#9603"
)
Expand Down