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:
Connor Olding 2017-08-05 10:41:35 +00:00
parent de5af4f7f4
commit 915b39d783

View File

@ -1039,7 +1039,9 @@ class Ritual: # i'm just making up names at this point.
return predicted
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):
self.en = 0