Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
def
fix_seed(seed=1):
24
# reproducible
25
np.random.seed(seed)
26
tf.set_random_seed(seed)
27
28
29
def
plot_his(inputs, inputs_norm):
Callers
2
built_net
Function · 0.85
tf23_BN.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected