-
Notifications
You must be signed in to change notification settings - Fork 30
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 a generic fallback for reconstruct
#520
Conversation
Thank you for the PR. I confirmed locally that it works on the example above. Update I must have produced a false result above.
throws an error. |
Pull Request Test Coverage Report for Build 6023022641
💛 - Coveralls |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #520 +/- ##
==========================================
- Coverage 80.40% 80.37% -0.03%
==========================================
Files 24 24
Lines 2776 2777 +1
==========================================
Hits 2232 2232
- Misses 544 545 +1
☔ View full report in Codecov by Sentry. |
This PR shouldn't be necessary after #521 , no? EDIT: Ah, sorry, I was thinking about |
Btw, how is this enough to make EDIT: After running it locally I see what's happening 👍 We're just treating it as an iterable. |
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.
Could we have some tests for this?
Co-authored-by: Tor Erlend Fjelde <[email protected]>
I'll add a test later this week. |
I'm still confused why this example is even working; EDIT: Ah, found it: https://github.com/itsdfish/SequentialSamplingModels.jl/blob/728319eed7fac9c30fd2d2372834761eba97ee4f/src/type_system.jl#L91 But in this scenario, wouldn't it be better to just add a Of course, the better scenario, is probably to add proper support for something like |
|
True, but then shouldn't we instead make a push to loosen the requirement of using
If we do something that is in the "in-between" space, then this increases the likelihood of silently producing incorrect results. @itsdfish if you're already messing with DynamicPPL-internals such as overloading reconstruct(d::SSM2D, r::AbstractVector) = deepcopy(r) to the package:) |
Thank you. That sounds reasonable. I will do that. Thanks for your help! |
Awesome:) @yebai happy to close this PR then? |
Fix the following issue reported by Christopher Fisher in slack.