set_seed | R Documentation |
To ensure consistent results, a seed has to be set in R
using set.seed
as usual but also in numpy
and torch
via reticulate
.
Therefore this function simplifies the process into one funciton.
set_seed(seed_R, seed_np = seed_R, seed_torch = seed_R)
seed_R |
( |
seed_np |
( |
seed_torch |
( |
No return value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.