powered by
Ensures reproducibility by synchronizing random seeds across:
R's random number generator (set.seed()),
set.seed()
TensorFlow's random state (tf$random$set_seed()),
tf$random$set_seed()
Python's built-in random module.
random
reset_seeds(spec_seed)
No return value but will print a confirmation message.
Integer. The seed value to apply across R, TensorFlow, and Python.
This also clears the current Keras/TensorFlow graph and session before reseeding, preventing residual state from prior model builds.
This function is not called automatically within AutoTab. Use it before training runs for reproducibility.
Equivalent results still require identical environments (same TensorFlow, CUDA/cuDNN, and library versions).
VAE_train(), set_feat_dist()
VAE_train()
set_feat_dist()
# \donttest{ if (reticulate::py_module_available("tensorflow")) { reset_seeds(1234) } # }
Run the code above in your browser using DataLab