필터 지우기
필터 지우기

Manually modifying weights in Matlab SeriesNetwork without retraining

조회 수: 2 (최근 30일)
Kirill Korotaev
Kirill Korotaev 2018년 3월 2일
댓글: Kirill Korotaev 2018년 3월 9일
Dear all, I want to manually change weights in a convolutional layer of a trained network, keeping all weights in all other layers constant and explicitly see how classifying accuracy is changing. As far as I am concerned, to classify using modified weights I have to initialize new network with trainNetwork and train it.
net = trainNetwork(merchImagesTrain,layers,options);
I don't want to train at all, I want keep every weight in every layer as it is. Aborting training at the very beginning or shuffling training labels doesn't work well for this problem because there are tiny changes caused by these operations to the weights anyways.
  댓글 수: 1
Kirill Korotaev
Kirill Korotaev 2018년 3월 9일
I am going to answer my own question in case anybody meets the same goal.
The key is to set 'L2Regularization' parameter to 0, set minuscule learning rate and train for 1 epoch

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by