How to avoid declaration of neural network in an m file again and again?

조회 수: 1 (최근 30일)
Abbas
Abbas 2013년 5월 31일
댓글: mittal54 2015년 5월 15일
I am using a feed forward neural network with keyword feedforwardnet in an m file.Whenever I run my m file neural network gives different results may be because of new weights and biases for each new declaration of neural network.I am not using init() function which initializes weights and biases each time; even then it is happening.It seems to happen because of new declaration of network each time m file is run.Please help me to avoid this so that I can obtain consistent results from neural network.

채택된 답변

Greg Heath
Greg Heath 2013년 6월 1일
rng(0)
% help rng %doc rng
Thank you for formally acceptingmy answer
Greg
  댓글 수: 1
mittal54
mittal54 2015년 5월 15일
Thanks @greg I was wondering why rng(0) is used in most of the examples. Now I got it

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

추가 답변 (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