In general, initial weights and trn/val/tst data division uses random number generation.
Therefore, to obtain reproducible results you must initialize the RNG to the same state every run.
rng(0)
will work but so will positive integers less than a maximum value that I think is ...
Never mind. You'd better read the documentaion:
help rng
doc rng
Hope this helps.
Greg
Best Answer