Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rushter/MLAlgorithms
/ train_batch
Method
train_batch
mla/neuralnet/optimizers.py:60–63 ·
view source on GitHub ↗
(self, network, X, y)
Source
from the content-addressed store, hash-verified
58
return
epoch_loss
59
60
def
train_batch(self, network, X, y):
61
loss = np.mean(network.update(X, y))
62
self.update(network)
63
return
loss
64
65
def
setup(self, network):
66
""
"Creates additional variables.
Callers
nothing calls this directly
Calls
2
update
Method · 0.95
update
Method · 0.45
Tested by
no test coverage detected