Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix bug with PeriodicKernel.diag() #1919

Merged
merged 4 commits into from
Apr 10, 2022
Merged

Fix bug with PeriodicKernel.diag() #1919

merged 4 commits into from
Apr 10, 2022

Conversation

gpleiss
Copy link
Member

@gpleiss gpleiss commented Feb 17, 2022

  • Refactor PerodicKernel + docs
  • Improve tests

[Fixes #1915]
[Fixes #1926]

@gpleiss gpleiss added the bug label Feb 17, 2022
Copy link
Collaborator

@Balandat Balandat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good but for the inline question

gpytorch/kernels/periodic_kernel.py Show resolved Hide resolved
@gpleiss
Copy link
Member Author

gpleiss commented Mar 7, 2022

@Balandat I'm going to use this PR to also address #1926 . I'll let you know when its ready for another look.

@gpleiss
Copy link
Member Author

gpleiss commented Mar 7, 2022

I'm wondering if we should also fix #1020 while we're at it - the lengthscale parameter is inconsistent with our other kernels (i.e. we should be squaring the lengthscale parameter). This would be a breaking change though... thoughts?

Of course, we should save this for a different PR.

@gpleiss
Copy link
Member Author

gpleiss commented Mar 7, 2022

@Balandat ready for a second review / merge.

@npielawski
Copy link

I have never really participated in PRs, so let me know if my comment is useful or not.

I tried the PR on my code and it fixed the bug I described in pytorch/botorch#1112.
I am also making my own periodic kernel, and I reused part of this code. In this case, the PR successfully removed the diag bug again.

Copy link
Collaborator

@Balandat Balandat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gpleiss this lgtm.

@Balandat Balandat merged commit 28a822a into master Apr 10, 2022
@Balandat Balandat deleted the fix_periodic branch April 10, 2022 15:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
3 participants