Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def train(self, X, Y):
- self.X = X
- self.Y = Y
- self.J = []
- params0 = self.N.getParams()
- options = {'maxiter':1, 'disp': True}
- _res = optimize.minimize(self.costFunctionWrapper, params0, jac=True,
- method='BFGS', args = (X, Y),
- options=options, callback = self.callbackF)
- self.N.setParams(_res.x)
- self.optimizationResults = _res
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement