Beispiel #1
0
func (m *multiGradStruct) SetResult() {
	optimize.SetResult(m.loc, m.grad, m.obj)

	setResulter, ok := m.optimizer.(optimize.SetResulter)
	if ok {
		setResulter.SetResult()
	}
}
Beispiel #2
0
func (u *uniGradStruct) SetResult() {
	optimize.SetResult(u.loc, u.grad, u.obj)
	//u.result.CommonResult = c

	setResulter, ok := u.optimizer.(optimize.SetResulter)
	if ok {
		setResulter.SetResult()
	}
}
Beispiel #3
0
func (lbfgs *Lbfgs) SetResult() {
	optimize.SetResult(lbfgs.step)
}
Beispiel #4
0
func (c *Cubic) SetResult() {
	optimize.SetResult(c.step)
}