MCPcopy Create free account
hub / github.com/MorvanZhou/tutorials / fix_seed

Function fix_seed

tensorflowTUT/tf23_BN/tf23_BN.py:23–26  ·  view source on GitHub ↗
(seed=1)

Source from the content-addressed store, hash-verified

21
22
23def fix_seed(seed=1):
24 # reproducible
25 np.random.seed(seed)
26 tf.set_random_seed(seed)
27
28
29def plot_his(inputs, inputs_norm):

Callers 2

built_netFunction · 0.85
tf23_BN.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected