-
Notifications
You must be signed in to change notification settings - Fork 5
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
how do I sample a consistent random seem in pyll? #4
Comments
True, that function makes no attempt to replicate the traversal order of genSON. See #2 for the need for genson-compatible sampling and grid iteration. |
The ticket is worded ambiguously and suggests that calling sample twice with the same seed yields two different results. This would be terrible, but it is not what happens. There are unit tests protecting against this behaviour. Given the scary suggestion of the issue's wording and the redundancy with #2, I'm closing it. |
The situation described above IS what happens, in some sense In other words, two calls of exactly this: |
Need an example then, because test_repeatable passes, as expected. There's something subtler going on. |
eccv12.lfw.MainBandit has this issue. e.g. In [124]: L = eccv12.lfw.MainBandit() In [125]: pyll.stochastic.sample(L.template, np.random.RandomState(0))['slm'][-1][-1][-1]['kwargs']['stretch'] In [126]: pyll.stochastic.sample(L.template, np.random.RandomState(0))['slm'][-1][-1][-1]['kwargs']['stretch'] |
e.g. the replacement of
genson_template.sample(seed)
?
Right now,
does NOT yield the same result on each call with a fixed seed, e.g. 0. Is it supposed to? If so, I'll submit a test
The text was updated successfully, but these errors were encountered: