sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
type fv = Owl.Algodiff.S.t
objective function value type
type prm = Owl.Algodiff.S.t
paramter type
type stop = state -> bool
stopping criterion function type
val iter : state -> int
iter s
returns the number of iterations for optimisation state s
val fv : state -> float
fv s
returns the objective function value of state s
init ~prms0 ~f ()
returns an initialises optimisation state for initial parmaters prms0
and objective function f
val stop : state -> bool
stop s
is the default stopping criterion, which prints out the iteration and objective function value at each optimisation iteration and terminates when the objective function value goes below 1E-4
min ?(stop=stop) ~lr s
minimises f for optimisation state s
using vanilla gradient descent. Once the stopping criterion is reached (i.e. stop s
returns true
), the min
returns the optimised state.