-
Notifications
You must be signed in to change notification settings - Fork 11
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
Expose API for Turing integration #90
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #90 +/- ##
==========================================
+ Coverage 95.86% 96.09% +0.23%
==========================================
Files 8 8
Lines 411 410 -1
==========================================
Hits 394 394
+ Misses 17 16 -1
☔ View full report in Codecov by Sentry. |
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.
Thanks @FredericWantiez -- it looks nice overall. I left a few minor comments below.
ext/AdvancedPSLibtaskExt.jl
Outdated
@@ -134,10 +131,10 @@ function AbstractMCMC.step( | |||
# Create reference trajectory. | |||
AdvancedPS.forkr(copy(state.trajectory)) | |||
else | |||
println(model) |
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.
println(model) |
ext/AdvancedPSLibtaskExt.jl
Outdated
trace = AdvancedPS.Trace(LibtaskModel(deepcopy(model), trng), trng) | ||
addreference!(gen_model.ctask.task, trace) # Do we need it here ? | ||
trace = AdvancedPS.Trace(deepcopy(model), trng) | ||
AdvancedPS.addreference!(trace.model.ctask.task, trace) # Do we need it here ? |
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.
AdvancedPS.addreference!(trace.model.ctask.task, trace) # Do we need it here ? | |
AdvancedPS.addreference!(trace.model.ctask.task, trace) # TODO: Do we need it here ? |
gen_model = LibtaskModel(deepcopy(model), trng) | ||
trace = AdvancedPS.Trace(LibtaskModel(deepcopy(model), trng), trng) | ||
addreference!(gen_model.ctask.task, trace) # Do we need it here ? | ||
trace = AdvancedPS.Trace(deepcopy(model), trng) |
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.
Did we define deepcopy(::LibtaskModel)
? I can't find it.
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 model
here is still the original model type: AbstractGenericModel
of some sort. We wrap it inside a LibtaskModel
in the Trace
constructor
Pull Request Test Coverage Report for Build 6750233421
💛 - Coveralls |
No description provided.