set_seed {survivalmodels} | R Documentation |
Set seed in R numpy and torch
Description
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.
Usage
set_seed(seed_R, seed_np = seed_R, seed_torch = seed_R)
Arguments
seed_R |
( |
seed_np |
( |
seed_torch |
( |
Value
No return value.
[Package survivalmodels version 0.1.191 Index]