Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
btracey committed Jan 26, 2019
1 parent e1662bc commit 0ff4598
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions optimize/gradientdescent.go
Expand Up @@ -83,3 +83,13 @@ func (g *GradientDescent) NextDirection(loc *Location, dir []float64) (stepSize
floats.Scale(-1, dir)
return g.StepSizer.StepSize(loc, dir)
}

func (*GradientDescent) needs() struct {
Gradient bool
Hessian bool
} {
return struct {
Gradient bool
Hessian bool
}{true, false}
}

0 comments on commit 0ff4598

Please sign in to comment.