mlr3keras_set_seeds: sets a seed in Random, Python, NumPy and Tensorflow.
Futhermore it disables hash seeds, and can disable GPU and CPU parallesim.
GPU and Cpu paralelissm can be a source of non deteministic executions.
For more information see https://stackoverflow.com/questions/42022950/which-seeds-have-to-be-set-where-to-realize-100-reproducibility-of-training-res.
mlr3keras_set_seeds( seed = 1L, r_seed = TRUE, random_seed = TRUE, python_seed = TRUE, tensorflow_seed = TRUE, disable_gpu = FALSE, disable_parallel_cpu = FALSE ) configure_session(disable_gpu, disable_parallel_cpu)
| seed |
|
|---|---|
| r_seed |
|
| random_seed |
|
| python_seed |
|
| tensorflow_seed |
|
| disable_gpu |
|
| disable_parallel_cpu |
|
configure_session: configurations for mlr3keras_set_seeds