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

Method update

code/chapter9.py:1146–1152  ·  view source on GitHub ↗

函数作用:梯度更新

(self)

Source from the content-addressed store, hash-verified

1144 return out, dXs
1145
1146 def update(self):
1147 """
1148 函数作用:梯度更新
1149 """
1150 for k, v in reversed(list(self.layers.items())):
1151 v.update()
1152 self.flush_gradients()
1153
1154 def flush_gradients(self, curr_loss=None):
1155 """

Callers 1

fitMethod · 0.95

Calls 2

flush_gradientsMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected