DEV Community

Cover image for Setting up a seed on Keras
Talles L
Talles L

Posted on

Setting up a seed on Keras

import random
import numpy as np
import tensorflow as tf

seed = 123

random.seed(seed)
np.random.seed(seed)
tf.random.set_seed(seed)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)