You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to make analyses reproducible, perhaps by setting a random seed? Specifically, I'm using the run function of the TreeTime class to estimate a clock model.
I've tried:
random.seed(1234)
and
numpy.random.seed(1234)
but the results still change slightly each time.
Thanks!
The text was updated successfully, but these errors were encountered:
Hmm. There are very few places where some stochastic behavior is expected (like placing mutations on the children of the root). Some variation might also come from rounding behavior, but on the same machine I'd expect these to be the same on every run. I am not sure whether any underlying optimization routine might use their own RNG.
Thanks for your reply! The variation I notice has been node dates (both joint and marginal). I'll play around with the parameters and see if I figure out anything more.
Is there a way to make analyses reproducible, perhaps by setting a random seed? Specifically, I'm using the
run
function of theTreeTime
class to estimate a clock model.I've tried:
and
but the results still change slightly each time.
Thanks!
The text was updated successfully, but these errors were encountered: