- 
                Notifications
    
You must be signed in to change notification settings  - Fork 230
 
Inference algorithm for sampling from the prior #1225
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
| 
           TuringLang/DynamicPPL.jl#77 would provide the same functionality, it seems?  | 
    
| 
           Ah, hadn't seen that! Though we'd still need to wrap it in a   | 
    
| 
           No, that's not needed. For convenience we allow users to specify   | 
    
| 
           Hmm, yeah so I actually did that initially, i.e. only implemented  Can you point me to where we convert the vector of varinfos to a chain? Looking at   | 
    
          Codecov Report
 @@            Coverage Diff             @@
##           master    #1225      +/-   ##
==========================================
- Coverage   66.14%   65.58%   -0.57%     
==========================================
  Files          25       26       +1     
  Lines        1288     1299      +11     
==========================================
  Hits          852      852              
- Misses        436      447      +11     
 Continue to review full report at Codecov. 
  | 
    
| 
           Yes, I expected that but that's not related to InferenceAlgorithm. I guess only the implementations of   | 
    
| 
           Yeah sorry, I didn't mean that I disagreed with you; with your PR there's no need to make this a  And yeah, it shouldn't be too much work, but maybe we should have that impl of   | 
    
| 
           I think actually this might be better served in Turing and not in DynamicPPL -- DynamicPPL doesn't really use AbstractMCMC that much so it surprises me to see it there.  | 
    
          
 The implementation of bundle samples for  
 IMO actually parts of the AbstractMCMC interface for Sampler (and SampleFromUniform and SampleFromPrior) that do not contain any types defined in Turing (such as, e.g., Turing.jl/src/inference/Inference.jl Lines 213 to 236 in fe79450 
 sample_end! should just be removed) or Turing.jl/src/inference/Inference.jl Lines 402 to 429 in fe79450 
  | 
    
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 also prefer this over having it in DPPL mainly because TypedVarInfo is used here.
          
 We could easily change that in DynamicPPL. To me it just seems weird to define a   | 
    
| 
           I lean towards to keep this in  
 @mohamed82008 I'm not sure I understand the issue here. Can you clarify what do you mean TypedVarInfo is in Turing?  | 
    
| 
           Replaced by #1243  | 
    
Allows you to do stuff like
returning a chain with samples from the prior.