-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add StatsBase.predict to the interface #81
base: main
Are you sure you want to change the base?
Conversation
Bump, maybe @devmotion or @torfjelde? |
Bump again. |
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.
Cheers for the bump; had missed this!
It's worth noting that DPPL is still not compatible wtih [email protected] so we might also want to add this to [email protected].
Furthermore, I'm slightly worried about the state of AbstractPPL atm; it's not clear if anyone has any ownership of the package atm, and IMO it's objectives are a bit all over the place.
I'd personally be happy to go against what was originally suggested in TuringLang/DynamicPPL.jl#466 (comment) and just putting this directly in DPPL.
Or we need to start giving AbstractPPL some love 😕
@sunxd3 can help backport this to It would be great to update |
I can try and help bring |
@sunxd3 It is related to changing behavior of the colon syntax. You can follow this issue TuringLang/DynamicPPL.jl#440 and the issues it linked. We can discuss this more in our next meeting. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #81 +/- ##
==========================================
- Coverage 84.82% 80.39% -4.44%
==========================================
Files 3 3
Lines 145 153 +8
==========================================
Hits 123 123
- Misses 22 30 +8
☔ View full report in Codecov by Sentry. |
@torfjelde @sunxd3 @penelopeysm, anything missing here? If not, can we push to merge this? |
as far as I can tell, we can introduce On a higher level, we can also add (I need to finish TuringLang/DynamicPPL.jl#651) |
I think @sethaxen might be preoccupied, so I am taking over. Let me know if this is bad. |
That's fine @sunxd3 , this has shifted way down on my priority list and I won't finish it anytime soon. |
apologies for the ping, this might not be ready yet, but maybe time to take a look and start some new discussions |
I guess the one question is whether we should perform |
just saw the comment, sorry. I thought about the same thing, but unsure what is the right thing to do. The issue for me is that the dimension of the prediction might not match the dimension of the data. How about we don't give a default implementation right now? To clarify, the default implementations for the optional arguments should be included, but not function StatsBase.predict(rng::AbstractRNG, T::Type, model::AbstractProbabilisticProgram, params)
return rand(rng, T, fix(model, params))
end |
As suggested in TuringLang/DynamicPPL.jl#466 (comment), this PR adds
StatsBase.predict
to the API with a default implementation.