-
Notifications
You must be signed in to change notification settings - Fork 3
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
Added ensemble object #5
base: master
Are you sure you want to change the base?
Conversation
Closes #1 |
@daub1, have you tested the ensemble sampler with a client like I like the concept, but I'm a little confused how a client can access it without changes to It would be nice if the extra wiring were not necessary, but I think that it is. -Chris
|
@crkrenn the ensemble simply combines multiple samplers, so changes aren't needed to anything. You would simply pass the data for each sampler into it. Take a look at the |
@daub1 (cc: @FrankD412), I want to support For example sample_list.yaml contains the following:
Ideally, your ensemble sampler would work with the following:
but, it does not. Can you tweak your implementation so that -Chris |
@crkrenn |
I have some work to do for Alan today, but will try to look at this in detail tonight. I'm guessing that "recursion" does not work?
I also haven't pulled the thread on working around circular imports... -Chris |
It will raise a circular import error. You can, however, just replace |
Can you (or someone else) refactor so that "new_sampler" always creates an ensemble object? Ideally, I'd like the old input format to still work:
And, I'd like a new input format to generate an ensemble object containing multiple samplers. Ideally, the format of the individual samplers would be as close to the single sampler format as possible. The following is a simple solution, but it may be fragile:
The following feels more robust and extensible to me, but I'm open to other proposals.
V/r, -Chris |
Added ensemble object, which allows combining multiple samplers into a single object with the same interface as the regular sampler object.