Skip to content
Discussion options

You must be logged in to vote

Hi - thanks for the question!

If you're concerned with random draws being independent, then random.split is exactly what you want. By construction, this ensures that if you do something like this:

key1, key = jax.random.split(key)
r1 = jax.random.uniform(key1, shape)

key2, key = jax.random.split(key)
r2 = jax.random.uniform(key2, shape)

then r1 and r2 will be independent. You can read more about this in JAX's PRNG design doc: https://jax.readthedocs.io/en/latest/jep/263-prng.html

Regarding "overlaps", it looks like section 2.2.1 of this paper is relevant: http://www.thesalmons.org/john/random123/papers/random123sc11.pdf

It suggests that overlap in streams from JAX's PRNG (which uses thre…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FabianoVeglianti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants