| reset_seeds | R Documentation |
Ensures reproducibility by synchronizing random seeds across:
R's random number generator (set.seed()),
TensorFlow's random state (tf$random$set_seed()),
Python's built-in random module.
reset_seeds(spec_seed)
spec_seed |
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).
No return value but will print a confirmation message.
VAE_train(), set_feat_dist()
if (reticulate::py_module_available("tensorflow")) {
reset_seeds(1234)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.