-
Notifications
You must be signed in to change notification settings - Fork 36
Rename kerneldiagmatrix[!] -> kernelmatrix_diag[!] #235
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good roughly but it seems you forgot to add the deprecations.
So I did! I added the tests of the deprecation and apparently was so used to writing code first I then didn't think anymore about actually deprecating them. Thanks for pointing that out 😆 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deprecations are not correct, please see my comments.
…tions.jl into st/kernelmatrix_diag
…tions.jl into st/kernelmatrix_diag
I noticed that the in-place kernelmatrix[_diag]! forms only tested the return value, not whether it correctly got written to the passed-in array, so I've added those as well. (The tests of utils.jl and pairwise.jl in contrast only test the passed-in array and don't check the return value, should we add those as well?) |
Oh, good that you added these other tests as well!
Probably, but in my opinion it should be done in a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
Can you bump the version? Then it can be merged and released, if tests pass.
Co-authored-by: David Widmann <[email protected]>
While we're looking at this: what's the use-case for kernelmatrix_diag(k, x, y) (with x != y but same shape)? I can't think of any place I'd actually use that code, so is it worth incurring the maintenance cost (like we've had now)? What for or where would you use it? |
I haven't used |
In Gaussian process models it's exactly the
In contrast, I've not come across any use-case for If we can't think of any use-cases, would it not be better to save the maintenance cost? What's the value of keeping around functions just because we can write them if we have no use for it? |
The one failing CI run seems to be some blip (if anyone can explain why that would happen intermittently, I'd be curious to find out). So I'm going to go ahead and merge it as is. I've moved the open question to a separate issue (#250). |
@willtebbutt motivated this as he needs it for Stheno |
I've bumped the version. Is there anything else that needs doing to release? @willtebbutt can you point me to the concrete use? would be curious to understand what you do with it. |
Yes, I just did. You can check it out all you need is to write a comment to the merging commit with |
Ah, neat. The docs suggest that given TagBot is installed in this repo's workflow it should automatically add a tag for the new release. How long does it usually take for that to happen? I can't see a new tag yet.. |
So first it needs to be registered in the Registry and that takes around 20 min (there is a cycle of automerge every 15 min or so) and then TagBot will automatically create a new tag with closes issues / pull request merged, that we can then edit |
Addresses #233