Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ init_weights
Function
init_weights
unsupervised_class2/util.py:37–39 ·
view source on GitHub ↗
(shape)
Source
from the content-addressed store, hash-verified
35
36
37
def
init_weights(shape):
38
w = np.random.randn(*shape) / np.sqrt(sum(shape))
39
return
w.astype(np.float32)
Callers
7
__init__
Method · 0.90
fit
Method · 0.90
__init__
Method · 0.90
fit
Method · 0.90
fit
Method · 0.90
fit
Method · 0.90
fit_to_input
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected