Different Bayes Optimization Results
Ältere Kommentare anzeigen
Sorry if it is a dumb question but is it normal to get different values despite using the same seed value? Or Am I making a mistake? I am using rng(1234,'twister') as seed value and Bayesian optimization in parallel. Thanks for the help.
1 Kommentar
John D'Errico
am 7 Feb. 2019
Hard to tell without seeing sufficient code. Probable user error. :)
Using rng as you did will reset the seed. Thus we see:
rng(1234,'twister')
>> rand
ans =
0.19152
>> rand
ans =
0.62211
>> rng(1234,'twister')
>> rand
ans =
0.19152
So when I use rng again, the sequence repeats. Perhaps you are doing something along the line to interrupt that sequence, thus perhaps a rng('shuffle") is done somewhere, perhaps by some other code you are using, even something you may have downloaded. As I said, hard to know.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Model Building and Assessment finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!