Closed sangchengfang closed 10 months ago
I solved this by updating to dev version.
Hi,
yes, all the tutorials are designed to be reproducible (at least to within machine precision). There were differences because you compared the live version of the tutorial (from github.io, which is always based on the main
branch and currently is version 2.0 Release Candidate) with the code from PyPI, which always tracks the latest stable release (which was version 1.1.1).
You can always look at the tutorial state as it was for version 1.1.1 if you clone the repository, checkout the v1.1.1
tag, and then look at the documentation locally (see README/Documentation). That should match the PyPI code. Alternatively, as you said, you can switch your code to the new version (2.0rc0 on branch main
) and then it matches the live website as well. (The dev
branch is already ahead of the website again so it might also not always match).
Small addendum: I'll be releasing the final version 2.0 very soon and then also PyPI will have the code that matches the website.
Hope that helped, Tobias
I run the script of "Tutorial 2" downloaded from https://tobiscode.github.io/disstans/tutorials/tutorial_2.html, but I cannot get the same results as shown on the tutorial webpage. I did not figure it out. Is "Tutorial 2: Advanced Models and Fitting" reproducible since we set np.random.default_rng(0)? The errors of constant and linear are also worrying. Please help me out, thanks.
My output:
This is my output of creating the conda environment: