Timeline for How can I retrieve the current seed of NumPy's random number generator?
Current License: CC BY-SA 3.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 5, 2022 at 22:07 | answer | added | Jeremy Roy | timeline score: 9 | |
| Sep 6, 2021 at 13:42 | answer | added | ZippyMagician | timeline score: 1 | |
| Apr 18, 2021 at 17:58 | comment | added | Fangda Han |
why don't your first set a seed by seed = np.random.randint(0, 100000)?
|
|
| Aug 10, 2020 at 13:21 | answer | added | OverLordGoldDragon | timeline score: 2 | |
| Apr 10, 2018 at 9:00 | answer | added | vestland | timeline score: 44 | |
| Mar 1, 2018 at 15:37 | answer | added | Dong Justin | timeline score: 2 | |
| Jul 3, 2016 at 9:13 | comment | added | Mast | @CharlieParker I accepted the answer lacking a better alternative. If you have an answer which says it can and how to do it, go ahead and post it. Acceptance marks can be moved. | |
| Jul 2, 2016 at 20:38 | comment | added | Charlie Parker |
why did the answer to your question say The short answer is that you simply can't (at least not in the general case). however you accepted the answer. Did he manage to answer your question or not? I am confused.
|
|
| Aug 24, 2015 at 11:51 | vote | accept | Mast | ||
| Aug 24, 2015 at 0:15 | history | edited | ali_m |
edited tags
|
|
| Aug 24, 2015 at 0:07 | history | edited | ali_m | CC BY-SA 3.0 |
clearer title
|
| Aug 24, 2015 at 0:06 | answer | added | ali_m | timeline score: 117 | |
| Aug 23, 2015 at 23:40 | comment | added | Mast | @ali_m If I fixed the seed, I know what seed to use to reproduce the result. However, if I haven't fixed the seed, how can I see what seed is used? | |
| Aug 23, 2015 at 23:17 | comment | added | ali_m |
Could you explain what you mean by "use the current seed to carry over for the next iteration of a process"? Is there a reason why you can't simply use a combination of np.random.get_state and np.random.set_state, or else pass around an instance of np.random.RandomState to keep track of the internal state of the RNG?
|
|
| Aug 23, 2015 at 22:10 | history | asked | Mast | CC BY-SA 3.0 |