How to find rng No. of a trained network ?

조회 수: 2 (최근 30일)
Muhammad Mohsin Khan
Muhammad Mohsin Khan 2020년 2월 4일
댓글: Muhammad Mohsin Khan 2020년 2월 4일
My humble hello to all users of this Forum.
After a long trial an error, I have found some very good results from a training network (while I was using 75% data for training). Since I didn't set the rng() number for that network. Is it possible to find that, Matlab is using what rng number for producing such a good results ??? For example is it rng(458); or rng(986), or rng (48) etc.???
As I mentioned, I have used 75% data for training. After setting the same rng number I will use the same network also for 70% data training, and then for 65% data training.
Thanks to all friends.

답변 (2개)

Hiro Yoshino
Hiro Yoshino 2020년 2월 4일
You should have taken a note or fixed the seed number before the training.
As far as I know, there is no ways to find out what the number was.
However, how to randomize the weights is not generally an essential part in trainng.
So it was just lucky unless it converges to a good one using the same configuration for the network.

fred  ssemwogerere
fred ssemwogerere 2020년 2월 4일
Hello, it is always good practice to initiate the random number generator before training. This can be seeded with a number of your choosing such as:
rng(998,'twister'); % '998' is my arbitrary seed
% This way you can be able to reproduce your results on each startup
Otherwise, for now, i don't think Matlab has that option of reproducing the state of the rng.
  댓글 수: 1
Muhammad Mohsin Khan
Muhammad Mohsin Khan 2020년 2월 4일
Hi Fred!,
Thanks for reply. Yes this is something not favourable I did, that I did not set up the rng number in start.

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by