Why do I get different input-output sensitivity each time I train a network on the same dataset in Neural Networks Toolbox?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am training a network several times and I get similar fits each time. However, if I plot the sensitivities of input, I find that they are entirely different after each training.
채택된 답변
MathWorks Support Team
2009년 6월 27일
Each time a neural network is created, it has semi-random weights and bias values. Hence, when trained it will find a different solution and therefore have different input-output sensitivities.
To consistently get the same solution and input-output sensitivities, for the same network architecture trained on the same data, set the random seed generator to a fixed value (such as pi) before creating and training the network:
rand('seed',pi);
댓글 수: 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!