- To ensure that your results are reproducible, you can set a random seed at the start of your code:pythonCopy code
import numpy as np import tensorflow as tf np.random.seed(42) tf.random.set_seed(42)
import numpy as np import tensorflow as tf np.random.seed(42) tf.random.set_seed(42)
Leave a Reply