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!