Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ load_weights
Method
load_weights
rl/linear_rl_trader.py:99–102 ·
view source on GitHub ↗
(self, filepath)
Source
from the content-addressed store, hash-verified
97
self.losses.append(mse)
98
99
def
load_weights(self, filepath):
100
npz = np.load(filepath)
101
self.W = npz[
'W'
]
102
self.b = npz[
'b'
]
103
104
def
save_weights(self, filepath):
105
np.savez(filepath, W=self.W, b=self.b)
Callers
1
load
Method · 0.45
Calls
1
load
Method · 0.45
Tested by
no test coverage detected