mrc-ide / queuer

:walking::walking::walking: Prototype general queue
https://mrc-ide.github.io/queuer
Other
4 stars 1 forks source link

add convenience functions to emulate mapply() and replicate() #12

Closed jeffeaton closed 7 years ago

jeffeaton commented 8 years ago

Low priority...just because I'm lazy.

For qreplicate(), it might also be a nice feature to be able to pass seed values, or randomly generate and return seeds as an attr() if none are provided.

richfitz commented 8 years ago

Seeding and RNG in general is something I've been studiously avoiding thinking about (parallel random numbers are kind of horrible).

jeffeaton commented 8 years ago

Yeah, that’s what made me think it would be great if you thought about it rather than me!! (And the past experience of running 1000 week long simulations that all produced the same results. Don’t seem to be getting that when I do something replicate()-esque right now, but I’m not sure if that’s good design or just good luck.)

On Oct 4, 2016, at 2:15 PM, Rich FitzJohn notifications@github.com wrote:

Seeding and RNG in general is something I've been studiously avoiding thinking about (parallel random numbers are kind of horrible).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

jeffeaton commented 8 years ago

To clarify, this was 1000 replications of a simulation that ran for a week, not a simulation that ran for 1000 weeks (although that could explain my productivity over the past 3 years.)

On Oct 4, 2016, at 2:23 PM, Jeff Eaton jeffrey.eaton@imperial.ac.uk wrote:

Yeah, that’s what made me think it would be great if you thought about it rather than me!! (And the past experience of running 1000 week long simulations that all produced the same results. Don’t seem to be getting that when I do something replicate()-esque right now, but I’m not sure if that’s good design or just good luck.)

On Oct 4, 2016, at 2:15 PM, Rich FitzJohn notifications@github.com wrote:

Seeding and RNG in general is something I've been studiously avoiding thinking about (parallel random numbers are kind of horrible).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

richfitz commented 8 years ago

running man

richfitz commented 7 years ago

mapply is done in 9f018b4 but I do not think that I will do replicate because: