Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synapse.NN.Layers.Regularizers
Description
Provides collection of functions that impose penalties on parameters which is done by adding result to loss value.
Synopsis
- type RegularizerFn a = SymbolMat a -> SymbolMat a
- newtype Regularizer a = Regularizer {}
- l1 :: (Symbolic a, Num a) => a -> RegularizerFn a
- l2 :: (Symbolic a, Num a) => a -> RegularizerFn a
RegularizerFn
type alias and Regularizer
newtype
type RegularizerFn a = SymbolMat a -> SymbolMat a Source #
RegularizerFn
type alias represents functions that impose penalties on parameters which is done by adding result of regularization to loss value.
newtype Regularizer a Source #
Regularizer
newtype wraps RegularizerFn
s - functions that impose penalties on parameters.
Every regularization function must return symbol of singleton matrix.
Constructors
Regularizer | |
Fields
|