sgd-0.8.0.3: Stochastic gradient descent library

Safe HaskellNone
LanguageHaskell2010

Numeric.SGD.Sparse.Momentum

Description

A version of Sparse extended with momentum.

Synopsis

Documentation

data SgdArgs Source #

SGD parameters controlling the learning process.

Constructors

SgdArgs 

Fields

sgdArgsDefault :: SgdArgs Source #

Default SGD parameter values.

type Para = Vector Double Source #

Vector of parameters.

sgd Source #

Arguments

:: SgdArgs

SGD parameter values

-> (Para -> Int -> IO ())

Notification run every update

-> (Para -> x -> Grad)

Gradient for dataset element

-> DataSet x

DataSet

-> Para

Starting point

-> IO Para

SGD result

A stochastic gradient descent method. A notification function can be used to provide user with information about the progress of the learning.