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
**BREAKING**: makes GP evaluation explicitly require RowVecs/ColVecs wrapper; calling GP with AbstractMatrix now errors #260
Conversation
Codecov Report
@@ Coverage Diff @@
## master #260 +/- ##
=======================================
Coverage 97.88% 97.89%
=======================================
Files 10 10
Lines 379 380 +1
=======================================
+ Hits 371 372 +1
Misses 8 8
Continue to review full report at Codecov.
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…stractGPs.jl into st/matrix_info
Somehow the docs preview doesn't seem to reflect the changes. The PPL test failure is unrelated (Turing/libtask_jll version incompatiblities). |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…stractGPs.jl into st/matrix_info
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.
A couple of thoughts
Oo, also -- could you add a small |
I'm happy with this now, but I would like @devmotion to approve, as he's been quite involved in the review of this 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.
I think the PR is not completely ready yet but it's definitely better to decide and state clearly that matrices are not supported instead of allowing them but still printing a log message.
I have the following questions:
- Was there agreement that matrices should not be allowed in KernelFunctions either (I would be fine with it but I know that @theogf wanted to support matrices in the past)? I think this PR should only be merged after the behaviour in KernelFunctions is changed, and it should not be merged at all if we want to continue supporting matrices in KernelFunctions. It seems you also link to the documentation of KernelFunctions in the docstring but currently this documentation explains why matrices are supported: https://juliagaussianprocesses.github.io/KernelFunctions.jl/stable/design/#Why-We-Have-Support-for-Both
- Have you considered deprecating the constructor (possibly with a custom deprecation message) and removing it in the next breaking release instead of throwing an error? Throwing an error demands a breaking release but in this case we could just remove the constructor directly.
- Have you considered handling the matrices in
(f::AbstractGP)(x...)
instead of (or in addition) to theFiniteGP
constructor?f(x...)
seems to be the official API and hence it is a bit surprising to only error in an internal method - but to refer tof(x...)
in the error message.
docs/src/concrete_features.md
Outdated
@@ -1,26 +1,6 @@ | |||
# Features | |||
|
|||
## Plotting |
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.
These changes seem unrelated, would have been cleaner to make them 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.
true. just done that
I don't care anymore if we support matrices or not in KernelFunctions. I think this is a useful feature, but if we want to remove it it's fine. However, I disagree with the order of deprecation. We should deprecate AbstractGPs first as it has zero impact on KernelFunctions.jl. KF is still a very distinct part of the whole ecosystem anyway |
It's distinct but in both cases currently one can use As a middle ground, we could just remove the default value for |
I think this PR should not be merged in light of the (soon to be merged) |
#264 was merged, so I think this PR can be closed. |
Resolves #257