Using weights of different network to the current network:
for 2 networks net1 & net2, copy the layers to some variable
layers = net1.Layers;
layers(net1layerindex).Weights(net1index) = net2.Layers(net2layerindex).Weights(net2index);
Let's say you want to set weights of a channel of a convolution2dLayer to zeros(channelDimension) layers(convLayerIndex).Weights(:,:,channelIndex) = zeros(channelDimension)
layers(convLayerIndex).Weights(:,:,channelIndex,Index) = zeros(respectiveDimension)
Use the above layers to create a DAG or a Series network. You can also refer to the documentation of the assembleNetwork function which helps creating deep learning networks from layers without training. You can also set the Learning factor for a layer as follows:
layer.WeightLearnRateFactor = 0;
Best Answer