MCPcopy
hub / github.com/MingchaoZhu/DeepLearning / forward

Method forward

code/chapter9.py:1130–1136  ·  view source on GitHub ↗
(self, X_train)

Source from the content-addressed store, hash-verified

1128 self.is_initialized = True
1129
1130 def forward(self, X_train):
1131 Xs = {}
1132 out = X_train
1133 for k, v in self.layers.items():
1134 Xs[k] = out
1135 out = v.forward(out)
1136 return out, Xs
1137
1138 def backward(self, grad):
1139 dXs = {}

Callers 2

fitMethod · 0.95
evaluateMethod · 0.95

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected