-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
GenPC
(Permuted Congruential) as the default random number gene…
…rator everywhere (#1099) `GenPC` is already the default generator used by `RngState` when not passed to the constructor: https://github.com/rapidsai/raft/blob/a9e060d354917114bb8baa5de9c55ef917f203af/cpp/include/raft/random/rng_state.hpp#L48-L52 But the default value for the `GeneratorType` remained `GenPhilox` in some prims, such as `make_blobs` and `make_regression`. PC is faster and more reliable, so it should be the default there too. Also, whenever possible, the generator type shouldn't be hardcoded, it should either use the default (construct `RngState` with the seed only) or an argument (as is the case with `make_blobs` and `make_regression`). _Note: this will effectively modify many test inputs, so be aware of that when comparing results prior to and following the change._ Authors: - Louis Sugy (https://github.com/Nyrio) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #1099
- Loading branch information
Showing
7 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters