How to train NN by keeping all the weights fixed except one of the weights ?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using the neural network toolbox for my project,and I need to make big neural network which all its weights are fixed(I need to set specific weight to them before training) except of one weight(which need to be obtained after this training), How can I train my net which wants to update just one weight and keeps other weights unchanged?
although I read the below link but still I confused with my problem:
I will appreciate in advanced if anyone can help me with this problem.
댓글 수: 0
채택된 답변
Greg Heath
2014년 10월 27일
You would have to write your own code to have separate learning rates for different subsets of weights.
In lieu of that you could train or adapt the net one epoch at a time. After each epoch, replace the weights that you want to keep constant. My experience shows that you may also have to reinitialize mu if you use trainlm. If you use another training or adaptation algorithm you should check to see what internal parameters are reinitialized upon recall of the algorithm.
I performed a very quick and dirty test with simplefit_dataset, fitnet, train and trainlm. When the weight to be trained is the smallest of the weights the technique was successful; when it was the largest, it was not. Many more test examples would have to be run before the technique can be graded.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!