Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
severinson committed Feb 28, 2024
1 parent cb4b113 commit c42c656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/common/optimisation/optimisation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import "gonum.org/v1/gonum/mat"

// Optimiser represents a first-order optimisation algorithm.
type Optimiser interface {
// Update the parameters p using gradient g and store the result in out.
Update(out, p *mat.VecDense, g mat.Vector) *mat.VecDense
// Update the parameters using gradient and store the result in out.
Update(out, parameters *mat.VecDense, gradient mat.Vector) *mat.VecDense
// Extend the internal state of the optimiser to accommodate at least n parameters.
Extend(n int)
}

0 comments on commit c42c656

Please sign in to comment.