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

ENH: Remove math.utils module #26

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

jhlegarreta
Copy link
Contributor

@jhlegarreta jhlegarreta commented Dec 20, 2024

Remove the math.utils module:

@jhlegarreta
Copy link
Contributor Author

Re: d65a001 no tags/releases exist yet, so we are not breaking the API.

@jhlegarreta
Copy link
Contributor Author

Leaving the semidefinite positiveness check function in case we decide to call it from the covariance matrix construction methods.

Copy link

codecov bot commented Dec 20, 2024

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@oesteban
Copy link
Member

Leaving the semidefinite positiveness check function in case we decide to call it from the covariance matrix construction methods.

Scikit-learn checks this internally. I think it can safely go away :)

@jhlegarreta jhlegarreta force-pushed the MoveMathUtilsTestingToRoot branch from d65a001 to 0c95d93 Compare December 20, 2024 14:46
@jhlegarreta jhlegarreta changed the title STYLE: Move math.utils testing to root test folder ENH: Remove math.utils module Dec 20, 2024
@jhlegarreta
Copy link
Contributor Author

Scikit-learn checks this internally. I think it can safely go away :)

Removed.

Remove the `math.utils` module:
- The positive semidefinite check for the kernels is built-in in
  `scikit-learn` `GaussianProcessRegressor` class:
  https://github.com/dalmia/scikit-learn/blob/598c651afd987a540e404ccdb3491d530e0b0abb/sklearn/gaussian_process/gpr.py#L245
- The `math.utils.compute_angle` function, as it was superseded by
  `model.gpr.compute_pairwise_angles`.
@jhlegarreta jhlegarreta force-pushed the MoveMathUtilsTestingToRoot branch from 0c95d93 to 2b6e33e Compare December 20, 2024 14:53
@oesteban oesteban merged commit 6b6ba70 into nipreps:main Dec 20, 2024
6 checks passed
@jhlegarreta jhlegarreta deleted the MoveMathUtilsTestingToRoot branch December 20, 2024 16:39
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.

2 participants