8000 MAINT solve the failure in scipy-dev by glemaitre · Pull Request #26646 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

MAINT solve the failure in scipy-dev #26646

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 21, 2023
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
12 changes: 12 additions & 0 deletions sklearn/linear_model/tests/test_quantile.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def default_solver():
return "highs" if sp_version >= parse_version("1.6.0") else "interior-point"


@pytest.mark.skipif(
parse_version(sp_version.base_version) >= parse_version("1.11"),
reason="interior-point solver is not available in SciPy 1.11",
)
@pytest.mark.parametrize("solver", ["interior-point", "revised simplex"])
def test_incompatible_solver_for_sparse_input(X_y_data, solver):
X, y = X_y_data
Expand Down Expand Up @@ -237,6 +241,10 @@ def test_equivariance(quantile, default_solver):
assert_allclose(model2.coef_, np.linalg.solve(A, model1.coef_), rtol=1e-5)


@pytest.mark.skipif(
parse_version(sp_version.base_version) >= parse_version("1.11"),
reason="interior-point solver is not available in SciPy 1.11",
)
@pytest.mark.filterwarnings("ignore:`method='interior-point'` is deprecated")
def test_linprog_failure():
"""Test that linprog fails."""
Expand Down Expand Up @@ -280,6 +288,10 @@ def test_sparse_input(sparse_format, solver, fit_intercept, default_solver):


# TODO (1.4): remove this test in 1.4
@pytest.mark.skipif(
parse_version(sp_version.base_version) >= parse_version("1.11"),
reason="interior-point solver is not available in SciPy 1.11",
)
def test_warning_new_default(X_y_data):
"""Check that we warn about the new default solver."""
X, y = X_y_data
Expand Down
0