Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeatability Problem in Python 3 Virtual Environment #9

Open
cksajil opened this issue Nov 23, 2019 · 0 comments
Open

Repeatability Problem in Python 3 Virtual Environment #9

cksajil opened this issue Nov 23, 2019 · 0 comments

Comments

@cksajil
Copy link

cksajil commented Nov 23, 2019

Hi,
I exported the 'bbc_test.ipynb' into a '.py' file and tried to reproduce the result. I could get the result in Anaconda Python 3.7.3 and in a virtual environment of Python 3 (with installing necessary libraries). But setting seed value doesn't ensure repeatability in the case of the virtual environment. On the other hand, if we set random seed, the Anaconda version ensures reproducibility 100%.

Anaconda Python in my laptop uses 'Numpy version 1.17.3' whereas while working with virtual environments it takes the latest version '1.17.4' which was released recently. I understand the latest version of Numpy has some bug fixes regarding random number generation reported against Ver 1.17.3.

I tried to log the values in both Anaconda and virtual environment and observed the change starting from line 209 of 'sampler.py'. I am not sure the cause for different outputs is because of some bug in the new Numpy version or do we have to make some modification in 'sampler.py' to ensure repeatability while working with virtual environments ?.

Thanks in advance,

@cksajil cksajil changed the title Repeatability problem in Python3 Virtual environment Repeatability Problem in Python 3 Virtual Environment Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant