Closed mr-pablinho closed 3 years ago
Hi @mr-pablinho thank you for your message and your detailed error describtion. Indeed dream uses the sitepacke "random" and the other algorithms use "numpy.random" and I had set the random state for the numpy package only. I uploaded a corresponding fix. Would you mind to test it?
Sure, no problem! I did it and it is working now. Great! Thank you!
Perfect, thank you for testing and your feedback!
Hello! I am using the DREAM algorithm and realized that it is not possible to reproduce the results by defining a number in the
random_state
variable within the functionspotpy.algorithms.dream
. In order to reproduce results, one has to addrandom.seed(any_number)
at the beginning of the script. For instance:If I am right, this could be introduce also in the examples of the repository for clarification. If a pull request is needed I could do it. I've been also trying to solve the issue in the source code, but I've been not able so far.
If I am wrong, is there something that I didn't understand? I would be glad to know.
Thanks for you work and time on this tool.