Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ init_weights
Function
init_weights
ann_class/tf_example.py:41–42 ·
view source on GitHub ↗
(shape)
Source
from the content-addressed store, hash-verified
39
40
# tensor flow variables are not the same as regular Python variables
41
def
init_weights(shape):
42
return
tf.Variable(tf.random_normal(shape, stddev=0.01))
43
44
45
def
forward(X, W1, b1, W2, b2):
Callers
1
tf_example.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected