setLearnRateFactor
Set learn rate factor of layer learnable parameter
Syntax
Description
sets the learn rate factor of the parameter with the name
layerUpdated = setLearnRateFactor(layer,parameterName,factor)parameterName in layer to
factor.
For built-in layers, you can set the learn rate factor directly by using the
corresponding property. For example, for a convolution2dLayer
layer, the syntax layer =
setLearnRateFactor(layer,'Weights',factor) is equivalent to
layer.WeightLearnRateFactor = factor.
sets the learn rate factor of the parameter specified by the path
layerUpdated = setLearnRateFactor(layer,parameterPath,factor)parameterPath. Use this syntax when the layer is a
networkLayer or when the parameter is in a
dlnetwork object in a custom layer.
sets the learn rate factor of the parameter with the name
netUpdated = setLearnRateFactor(net,layerName,parameterName,factor)parameterName in the layer with name
layerName for the specified dlnetwork
object.
sets the learn rate factor of the parameter specified by the path
netUpdated = setLearnRateFactor(net,parameterPath,factor)parameterPath. Use this syntax when the parameter is in
a networkLayer or when the parameter is in a
dlnetwork object in a custom layer.