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

	setResulter, ok := m.optimizer.(optimize.SetResulter)
	if ok {
		setResulter.SetResult()
	}
}
示例#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()
	}
}
示例#3
0
func (lbfgs *Lbfgs) SetResult() {
	optimize.SetResult(lbfgs.step)
}
示例#4
0
func (c *Cubic) SetResult() {
	optimize.SetResult(c.step)
}