Commit 10843eb
committed
Use seed! to put every copy of rng into a unique state
Using `rand(_rng, i)` didn't really put all copies of `rng` into a
unique state, the states were still interlocked (all the generators
produced same sequence of random numbers with some offset). Calling `
seed!` with a deterministic, pseudo-random seed for each thread produces
much better results, which is also visible in the classification and
regression accuracies produced by the tests.1 parent c199322 commit 10843eb
2 files changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
| 376 | + | |
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 101 | + | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
| |||
0 commit comments