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

Add isotropy test #271

Merged
merged 1 commit into from
May 18, 2023
Merged

Add isotropy test #271

merged 1 commit into from
May 18, 2023

Conversation

thomaspinder
Copy link
Collaborator

Type of changes

  • Bug fix
  • New feature
  • Documentation / docstrings
  • Tests
  • Other

Checklist

  • I've formatted the new code by running poetry run pre-commit run --all-files --show-diff-on-failure before committing.
  • I've added tests for new code.
  • I've added docstrings for the new code.

Description

In GPJax versions <0.6, we have a bug that prevented users defining an isotropic kernel when their data was greater than a single dimension. This issue was inadvertently fixed in the v0.6 release. This PR simply adds a test to make sure an isotropic kernel can be specified.

Issue Number: #237

@thomaspinder thomaspinder added the bug Something isn't working label May 18, 2023
@thomaspinder thomaspinder added this to the v1.0.0 milestone May 18, 2023
@thomaspinder thomaspinder self-assigned this May 18, 2023
@daniel-dodd
Copy link
Member

daniel-dodd commented May 18, 2023

@thomaspinder, this bug was fixed because now we pass a lengthscale upon defining a class that by default this is a single dimension, giving isotropy. But what happens if the active dims and the lengthscale are different sizes (e.g., lengthscale of jnp.array([1.0, 2.0, 3.0]) and active dims of [0, 1])? Does this potential mismatch cause a new bug?

@daniel-dodd daniel-dodd merged commit a1cc2e2 into main May 18, 2023
11 checks passed
@daniel-dodd daniel-dodd deleted the isotropic_bug branch May 18, 2023 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants