필터 지우기
필터 지우기

Freeze specific weights in shallow neural network

조회 수: 4 (최근 30일)
M.
M. 2022년 3월 8일
편집: M. 2022년 3월 8일
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개)

카테고리

Help CenterFile 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!

Translated by