-
Notifications
You must be signed in to change notification settings - Fork 26
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
Parameters with constraints #106
Parameters with constraints #106
Conversation
adds examples
merge with previous modification
merge from origin
merge nkn kernel
…to nkn_kernel merge remote changes
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
Co-Authored-By: willtebbutt <[email protected]>
…to nkn_kernel mergin
Codecov Report
@@ Coverage Diff @@
## master #106 +/- ##
=======================================
Coverage 82.89% 82.89%
=======================================
Files 27 27
Lines 795 795
=======================================
Hits 659 659
Misses 136 136 Continue to review full report at Codecov.
|
Thanks for the work @HamletWantToCode -- I'm really busy at the minute, but will try and get around to reviewing in the next few days. |
@HamletWantToCode I'm really sorry for letting this drop off my radar. I was wondering if you'd be open to spinning this out into a separate package? I would be very happy to make Stheno depend on it of course -- I just think that the community could benefit from something like this and it would be a bit of a shame to lock it up in Stheno. |
Never mind. I'd love to make it a separate package. Maybe I will do it next week, after I finish my assignments. |
Should we close this PR ? |
Hi @willtebbutt, the main feature of this PR is the
Parameter
type as we discussed #104 .Parameter
receives scalar/vector/matrix and use bijector in Bijectors.jl to restrict their domain. I modify several constructor of kernels so that people can use it without changing their existing code. Here are some example:Currently, I only modify code in
src/gp/
folder and don't touchsrc/composite
folder, I will proceed if we both happy with the APIs.In #104 , you proposed to use
and indicated that "the use of a Ref for Flux compatibility". However, if
Ref
is used, thenparams
can't extractx
.params
of Flux requires trainable parameters to be anAbstractArray
, so, currentlyx
is heap allocated ( maybe I miss something, if so, please let me know ).