-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
use new k threshold #235
use new k threshold #235
Conversation
I haven't had a chance to go through this in detail, but looks like it causes several tests to fail. Also I wonder if there will be any issue with reverse dependencies, but we can check that later. |
@avehtari CRAN wants a new release of loo before February 20th to fix some minor documentation issue that doesn't affect anything and is only flagged in the newest version of R. We can include this if we fix the tests and check reverse dependencies. I can check the reverse dependencies once everything is passing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good, except for a few issues I commented on.
Yesterday, I started working on fixing the PR, and I'm sorry for being so sloppy the first time and wasting your time. As there were still some checks failing, I didn't push the changes that I had made so far. Thanks for the additional comments. l'll keep working on this today. |
… new-pareto-k-threshold
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went through the doc changes, and made a few minor suggestions
Co-authored-by: n-kall <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. I made a bunch of tiny suggestions.
graphics::points(x = if (use_n_eff) n_eff[k < 0.5] else k[k < 0.5], | ||
col = clrs[k < 0.5], pch = 3, cex = .6) | ||
graphics::points(x = if (use_n_eff) n_eff[k < threshold] else k[k < threshold], | ||
col = clrs[k < threshold], pch = 3, cex = .6) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tested all the changes to the plotting code, but they look ok
Tests are passing on my computer. I still need to write more documentation. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #235 +/- ##
==========================================
- Coverage 93.00% 92.41% -0.59%
==========================================
Files 30 30
Lines 2788 2823 +35
==========================================
+ Hits 2593 2609 +16
- Misses 195 214 +19 ☔ View full report in Codecov by Sentry. |
Improved docs, fixed a few more things in code |
Great, looks like tests are passing on GitHub too, it's just R cmd check is failing due to a documentation issue: https://github.com/stan-dev/loo/actions/runs/7686962192/job/20946444630?pr=235#step:6:167. It might actually be that the doc just needs to be regenerated to match the code. |
All the vignettes have been now updated. I couldn't run loo2-non-factorized vignette as installation of |
Should be complete now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked through the vignette changes. Looks good, only found one thing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's one problem with the changes to the mixis
vignette that will cause an error (see review comment) but otherwise these vignette updates look ok to me
Here is a proposal for a longer news item There are two major changes in the new loo release
|
These look good. I made a few tiny edits and added them to the NEWS file. I will update the rest of the NEWS file to reflect some other changes we made in other PRs before releasing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing that I can think of from my side. I think the next related thing will be to update the documentation for |
Ok cool. And thanks for helping to review this.
Sounds good, thanks. |
@avehtari If I submit a bayesplot release with Teemu's fix for his recent PR, is that sufficient to fix the issue with the pit plots in the loo vignette or does the vignettes need additional editing after that? I think I will go ahead and submit that patch release of bayesplot today or tomorrow (it only contains that one bug fix). |
Teemu's bayesplot PR and fix for discrete data PIT affects ppc_pit_ecdf*, but not ppc_loo_pit_qq. Teemu's rsantools PR stan-dev/rstantools#121 fixes loo_pit and thus fixes ppc_loo_pit_qq used in loo2-example.Rmd |
Oh ok thanks, that makes sense. |
Merging now! |
Fixes #234
Ping @n-kall