필터 지우기
필터 지우기

Whenever i run my neural network I get different result in nftool

조회 수: 1 (최근 30일)
Kangujam
Kangujam 2018년 8월 23일
댓글: Walter Roberson 2018년 8월 24일
I built my neural network using only nftool without writing code.Whenever i run my neural network I get different result. What can I do to have the same result?

답변 (1개)

Walter Roberson
Walter Roberson 2018년 8월 23일
This is expected. The default initialization function for weights is random.
You can use rng() before every run that initializes the weights, or you can use a custom weight initialisation that is not random.
  댓글 수: 8
Kangujam
Kangujam 2018년 8월 24일
STATE = trainNetwork(STATE,percentValidate,percentTest,trainingFcnIndex); The above line of code is at line 77 and I have added rng() just above it.I have run it for same number of neuron but still different answers are obtained.
Walter Roberson
Walter Roberson 2018년 8월 24일
You need to pass a seed to rng() . Like
rng(12345);

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

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by