allow Optimizers to inspect Models (currently unused)
the thing that takes advantage of this may or may not be committed, so this may or may not get reverted.
This commit is contained in:
parent
de5af4f7f4
commit
915b39d783
1 changed files with 3 additions and 1 deletions
|
@ -1039,7 +1039,9 @@ class Ritual: # i'm just making up names at this point.
|
||||||
return predicted
|
return predicted
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.learner.optim.update(self.model.dW, self.model.W)
|
optim = self.learner.optim
|
||||||
|
optim.model = self.model
|
||||||
|
optim.update(self.model.dW, self.model.W)
|
||||||
|
|
||||||
def prepare(self, model):
|
def prepare(self, model):
|
||||||
self.en = 0
|
self.en = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue