mltool-0.1.0.2: Machine Learning Toolbox

Copyright(c) Alexander Ignatyev 2017
LicenseBSD-3
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

MachineLearning.NeuralNetwork.Regularization

Description

Regularization.

Synopsis

Documentation

data Regularization Source #

Regularization

Constructors

RegNone

No regularization

L2 R

L2 Regularization

forwardReg :: Regularization -> [(Matrix, Matrix)] -> R Source #

Calcaulates regularization for forward propagation. It takes regularization parameter and theta list.

backwardReg :: Regularization -> Matrix -> Matrix Source #

Calculates regularization for step of backward propagation. It takes regularization parameter and theta.