- 
                Notifications
    
You must be signed in to change notification settings  - Fork 37
 
Update to AbstractMCMC 2 #150
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
Conversation
| 
           I just rechecked, it seems most tests pass, mainly/only Gibbs is broken.  | 
    
| 
           Gibbs works as well now, but I'm not satisfied with the current implementation and the DynamicPPL-specific interface for the steps. It seems a bit too complicated, and in particular Gibbs + HMC have some weird initial steps. I won't be able to work on this for the next two weeks but it's in a working state now (apart from the PDMats error tests passed locally).  | 
    
| 
           bors try  | 
    
          tryBuild failed:  | 
    
| 
           bors try  | 
    
          tryBuild failed:  | 
    
| 
           bors try  | 
    
          tryBuild failed:  | 
    
| 
           bors try  | 
    
          tryBuild failed:  | 
    
| 
           bors try  | 
    
          tryBuild failed:  | 
    
| 
           bors try  | 
    
          tryBuild failed:  | 
    
| 
           Curious if there's anything I can do to help with this process!  | 
    
| 
           Sorry, I was quite busy the last weeks (had some deadlines last week), but hopefully this can be merged soon 🙂 It seems to work mostly, apart from some missing   | 
    
This PR updates the Turing test folder of DynamicPPL (IMO they should be synced before finishing #150). And I still think that we should get rid of this test dependency as much as possible 😄
| 
           Do you want a second pass on this one?  | 
    
| 
           I also updated the corresponding PR to Turing: TuringLang/Turing.jl#1428 Tests pass locally.  | 
    
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'll conditionally approve -- I left two comments but they are extremely minor. Well done!
| 
           Okay, I'm good to merge this then.  | 
    
| 
           @yebai @torfjelde @cpfiffer My plan would be to squash and merge this into the master branch, release a new breaking version 0.10 of DynamicPPL, and then update Turing by merging the corresponding PR over there (when tests pass - locally they do). Keeping this change in a separate branch (e.g. dev) would just delay the propagation of the changes to Turing which doesn't seem useful - but maybe you disagree? What's your opinion on this?  | 
    
| 
           I say merge it in. No point in putting this into a dev branch, I think.  | 
    
| 
           I'm also fine with merging into master for this. I'll complete my review this weekend (sorry for the delay; been a proper week) if that's fine, though from a quick look I don't see anything that would make me reject.  | 
    
          
 The plan sounds good to me!  | 
    
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 still have some unresolved comments but nothing breaking (one code suggestion which is simply to make it a bit nicer to read), so I'm going to to approve now 👍
Awesome stuff @devmotion !
| 
           I propose a slight deviation from the plan above: maybe we can merge #193 first, so also users with the current Turing + AbstractMCMC setup can install Distributions 0.24?  | 
    
| 
           Sure, works for me.  | 
    
Co-authored-by: Tor Erlend Fjelde <tor.erlend95@gmail.com>
| 
           I noticed that it is not completely straightforward to update Turing to Distributions 0.24 without this PR: #193 (comment)  | 
    
| 
           Can someone review (and hopefully approve) #195 so we can run the tests properly when merging this PR?  | 
    
| 
           Are you fine with this PR and approve it @torfjelde? I lost track a bit which things you still would like to be addressed 🙂  | 
    
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.
LGTM! :)
| 
           Perfect 🙂 bors r+  | 
    
This is a quite rough and initial draft of how to update DynamicPPL + Turing to AbstractMCMC 2 (tests don't pass currently). The update requires some major changes since `sample_init!` and `sample_end!` were removed. Some changes might have to be reverted or moved to other PRs, while others might be missing. Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
This is a quite rough and initial draft of how to update DynamicPPL + Turing to AbstractMCMC 2 (tests don't pass currently). The update requires some major changes since
sample_init!andsample_end!were removed. Some changes might have to be reverted or moved to other PRs, while others might be missing.