When is it ok to reuse a key ? #10376
-
Hi all,
where at least one of Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://github.com/google/jax/blob/88ac4edf63625db10f92d5368a598205aac1deb4/jax/_src/random.py#L496-L499 |
Beta Was this translation helpful? Give feedback.
https://github.com/google/jax/blob/88ac4edf63625db10f92d5368a598205aac1deb4/jax/_src/random.py#L496-L499
In your case, I think you should not reuse a key.
Even if
p
has proper randomness(i.e. uniform in simplex), fix key still cause bias w.r.t. position(index).If
a
has proper randomness(i.e. uniform in permutation), it seems ok. However, are you sure thata
has such randomness?