8000 fix missing code from bad push · scikit-learn/scikit-learn@c32d6e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit c32d6e1

Browse files
committed
fix missing code from bad push
1 parent d7e5a74 commit c32d6e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sklearn/metrics/tests/test_common.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,6 +1865,12 @@ def check_array_api_multilabel_classification_metric(
18651865

18661866

18671867
def check_array_api_regression_metric(metric, array_namespace, device, dtype_name):
1868+
func_name = metric.func.__name__ if isinstance(metric, partial) else metric.__name__
1869+
if func_name == "mean_poisson_deviance" and sp_version < parse_version("1.14.0"):
1870+
pytest.skip(
1871+
"mean_poisson_deviance's dependency `xlogy` is available as of scipy 1.14.0"
1872+
)
1873+
18681874
y_true_np = np.array([2.0, 0.1, 1.0, 4.0], dtype=dtype_name)
18691875
y_pred_np = np.array([0.5, 0.5, 2, 2], dtype=dtype_name)
18701876

0 commit comments

Comments
 (0)
0