Different Bayes Optimization Results
Mostrar comentarios más antiguos
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 comentario
John D'Errico
el 7 de Feb. de 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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Model Building and Assessment en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!