-
Notifications
You must be signed in to change notification settings - Fork 17
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
Sinusoid example not fully reproducible #283
Comments
* Copied over code that tracks random number generator `rng` that was in src/examples/Sinusoid/, so now the docs page can be run and is reproducible. This also changed a few numbers slightly that were initially run through the examples pages rather than the docs pages. * Added missing imports Statistics and Distributions in docs and in example file. * `emulator` -> `emulator_gp` * defined `init_sample` * defined variables that go into the random features emulator
Hi @matt-graham, thanks for raising these issues! I'd like to ask was if it clear that the example on our docs page is simply documenting code within For example
We do want the docs to be good teaching points, and be instructive, but I would say the walkthrough, though featuring snippets, is not intended to be used to reproduce the example, whereas the code in the examples directory is intended to reproduce everything (inc. plots etc). In light of this I think perhaps we should also add the item
What do you think? |
Hi 👋 I am replying to this also in the context of the JOSS review openjournals/joss-reviews#6372 When I looked at your Sinusoid example in the docs, it was in fact not immediately clear to me that it was intended to describe the Sinusoid example in your |
Apologies for the delay replying - here. I agree with @nluetts that having a link to the full code in the documentation would be useful - I also missed the |
The latest docs here I believe we have cleared up some reproducibility in the example file (PR287) and also a link at the top from the docs page to the examples (PR290) let us know if you want more done here. |
The info box in the docs is perfect, now this can hardly be overlooked. |
Raising as part of JOSS review openjournals/joss-reviews/issues/6372
The sinusoid example in the documentation https://clima.github.io/CalibrateEmulateSample.jl/dev/examples/sinusoid_example/ (and partially included in the JOSS paper), is not fully reproducible. I think this is at least in part due to the use of unseeded random number generators when sampling the observation noise for the simulated observations in
CalibrateEmulateSample.jl/docs/src/examples/sinusoid_example.md
Lines 97 to 98 in 6fcab82
and when simulating the Markov chain in
CalibrateEmulateSample.jl/docs/src/examples/sinusoid_example.md
Lines 359 to 365 in 6fcab82
so that we get different simulated observations from the values mentioned in the tutorial and different Markov chain samples.
There are also a few other small issues which mean the tutorial isn't runnable as is / a complete self-contained example
Statistics
for the use ofmean
andDistributions
for the use ofMvNormal
.emulator
variable passed toMCMCWrapper
not defined (presumably one ofemulator_gp
oremulator_random_features
should be aliased to this?)init_sample
variable passed asinit_params
argument toMCMCWrapper
is not definednugget
,n_features
,input_dim
,output_dim
(presumably the last two might map todim_params
anddim_output
)The text was updated successfully, but these errors were encountered: