-
Notifications
You must be signed in to change notification settings - Fork 7
Some bugfixes #125
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
Some bugfixes #125
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ using LinearAlgebra | |
| using Statistics | ||
| using StatsBase | ||
| using FillArrays: Fill | ||
| using PDMats: chol_lower | ||
| using PDMats: chol_lower, ScalMat | ||
|
|
||
| using AbstractGPs: AbstractGPs | ||
| using AbstractGPs: | ||
|
|
@@ -306,7 +306,7 @@ Statistics. PMLR, 2015. | |
| """ | ||
| function AbstractGPs.elbo( | ||
| sva::SparseVariationalApproximation, | ||
| fx::FiniteGP{<:AbstractGP,<:AbstractVector,<:Diagonal{<:Real,<:Fill}}, | ||
| fx::FiniteGP{<:AbstractGP,<:AbstractVector,<:Union{Diagonal{<:Real,<:Fill},ScalMat}}, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably be in a seperate issue, but I think that this is too restrictive of a type constraint - it depends too much on implementation details of AbstractGPs (which is why it broke in the first place) and isn't extensible. I'm pretty sure I wrote it in the first place, so I'll make a PR to change it once this one's in - but what do people think about it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd be happy for it to become cleaner, go ahead:) - what would be a better way of checking though? |
||
| y::AbstractVector{<:Real}; | ||
| num_data=length(y), | ||
| quadrature=DefaultExpectationMethod(), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.