L2_regularisation function
A function to return the L2 regularisation strategy for a network object.
L2_regularisation(alpha)
alpha |
parameter to weight the relative contribution of the regulariser |
list containing functions to evaluate the cost modifier and grandient modifier
Ian Goodfellow, Yoshua Bengio, Aaron Courville, Francis Bach. Deep Learning. (2016)
Terrence J. Sejnowski. The Deep Learning Revolution (The MIT Press). (2018)
Neural Networks YouTube playlist by 3brown1blue: https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi
http://neuralnetworksanddeeplearning.com/
# Example in context: NOTE the value of 1 used here is arbitrary, # to get this to work well, you'll have to experiment. net <- network( dims = c(784,16,16,10), regulariser = L2_regularisation(1), activ=list(ReLU(),logistic(),softmax()))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.