Skip to content
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

Fix equivalent sources tests failing after sklearn 1.6.0 #548

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

santisoler
Copy link
Member

@santisoler santisoler commented Jan 8, 2025

Test cartesian equivalent sources with f32 and f64 dtypes and also with damping as None and with a very small value. Mark the combination of damping=None and dtype=np.float32 with xfail, so it gets flagged but pytest doesn't error out. Since the equivalent sources with damping are more accurate, we don't need to have different absolute tolerances for both cases: keep a single value for atol. Set some very low absolute tolerances in spherical equivalent sources tests and in gradient-boosted equivalent sources tests.

Relevant issues/PRs:

Fixes #546

Test cartesian equivalent sources with f32 and f64 dtypes and also with
`damping` as `None` and with a very small value. Mark the combination of
`damping=None` and `dtype=np.float32` with `xfail`, so it gets flagged
but `pytest` doesn't errors out. Since the equivalent sources with
damping are more accurate, we don't need to have different absolute
tolerances for both cases: keep a single value for `atol`. Set some very
low absolute tolerances in spherical equivalent sources tests.
@santisoler santisoler changed the title Fix equiv sources tests failing after sklearn 1.6.0 Fix equivalent sources tests failing after sklearn 1.6.0 Jan 8, 2025
@santisoler santisoler merged commit 9e84571 into main Jan 8, 2025
16 checks passed
@santisoler santisoler deleted the fix-eqs-tests-sklearn-1.6.0 branch January 8, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some equivalent sources tests failing on scikit-learn 1.6.0
1 participant