Freeze specific weights in shallow neural network
4 次查看(过去 30 天)
显示 更早的评论
Dear forum members,
I was wondering if it is possible to initialize specific weights in a custom shallow neural network created with the network function, and not update them during training ?
I have seen these answers :
But it seems restricted to deep neural networks.
Is there something similar with the network function ?
I have not seen anything related in this documentation : https://mathworks.com/help/deeplearning/ref/network.html?s_tid=srchtitle_network_2
Let's say I have something like this:
numInputs = nI;
numLayers = nL;
biasConnect = ones(numLayers,1);
inputConnect = ones(numInputs,1);
layerConnect = ones(numLayers,numLayers);
outputConnect = [zeros(1,numLayers-1) 1];
net = network(numInputs,numLayers,biasConnect,inputConnect,layerConnect,outputConnect);
And I want the weight from layer 1 to 2 to be initialized before training and not being upadted afterwards.
Thanks in advance.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!