-
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
Bijector not defined for FiniteGP #113
Comments
For reference, running the following (copied from here and here) before running the Turing model fixes the error: Bijectors.bijector(d::Stheno.FiniteGP) = Identity{1}()
for T in (:VectorOfMultivariate, :FillVectorOfMultivariate)
@eval begin
Bijectors.bijector(d::Bijectors.$T{Continuous, <:Stheno.FiniteGP}) = Identity{2}()
end
end |
Thanks for opening this. I'll try and take a look soon. |
Ran into a similar problem trying to use a logit link and bernoulli likelihood function. Is the above still the best solution to this? |
Hmm I guess. @torfjelde do you know what's going on here? |
Yeah, I'd say so. Not too long ago we removed the "default"-implementations, which was to just use EDIT: Ideally that should just be made part of the package implementing the distribution, but we're probably not quite there yet for Bijectors.jl. |
Ah I see. @torfjelde what's the correct place to solve this? |
Well, I guess that kind means that we haven't done our job correctly, haha. The idea was for Bijectors.jl to be lightweight so that anyone who's using Distributions.jl wouldn't have any issues also depending on Bijectors.jl. Are there any particular dependencies that makes this an issue? With the exception of |
Oh interesting. I actually hadn't noticed that / hadn't realised how lightweight all of those packages are. I think I'm probably okay depending on A good place to add this would be another file in the |
Although, actually, @torfjelde is |
Ah, awesome!:) And we're currently implementing it for |
Fantastic. I'll change things on my end, then hopefully it will "just work". |
Will leave this open until we've got new versions tagged. |
Sweet! I'll make a PR for Bijectors.jl 👍 |
I found this when trying to run the Turing integration example. When I attempted to sample from the model (line 78), the error below is produced.
Not sure if this belongs here or in Bijectors...I can open an issue there if that's more appropriate.
The text was updated successfully, but these errors were encountered: