Skip to content

Commit 3d008e9

Browse files
committed
Merge branch 'master' into diff-diagnostics
2 parents 574af4f + d6fe380 commit 3d008e9

File tree

12 files changed

+35
-41
lines changed

12 files changed

+35
-41
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ man-roxygen/*
1212
tests/testthat/Rplots\.pdf
1313
^data-raw$
1414
vignettes/loo2-lfo_cache/*
15-
vignettes/loo2-non-factorizable_cache/*
15+
vignettes/loo2-non-factorized_cache/*
1616
^\.appveyor\.yml$
1717
^\.codecov\.yml$
1818
.github/*

.github/workflows/pkgdown.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ on:
1111

1212
name: pkgdown.yaml
1313

14-
concurrency:
15-
group: pages
16-
cancel-in-progress: true
17-
1814
jobs:
1915
pkgdown:
2016
runs-on: ubuntu-latest
17+
# Only restrict concurrency for non-PR jobs
18+
concurrency:
19+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
20+
cancel-in-progress: true
2121
env:
2222
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2323
permissions:
@@ -66,7 +66,7 @@ jobs:
6666
shell: Rscript {0}
6767

6868
- name: Deploy to GitHub pages 🚀
69-
uses: JamesIves/github-pages-deploy-action@v4.5.0
69+
uses: JamesIves/github-pages-deploy-action@v4
7070
with:
7171
clean: false
7272
branch: gh-pages

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ Config/testthat/start-first: loo_subsampling_cases, loo_subsampling
5858
Encoding: UTF-8
5959
LazyData: TRUE
6060
Roxygen: list(markdown = TRUE)
61-
RoxygenNote: 7.3.2
61+
RoxygenNote: 7.3.3
6262
SystemRequirements: pandoc (>= 1.12.3), pandoc-citeproc

R/loo.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ pointwise_loo_calcs <- function(ll, psis_object) {
446446
#' @param diagnostics Named list containing vector `pareto_k` and vector `n_eff`.
447447
#' @param dims Log likelihood matrix dimensions (attribute of `"psis"` object).
448448
#' @template is_method
449-
#' @param is_object An object of class `"psis"/"tis"/"sis"`, as returned by the [psis()/tis()/sis()] function.
449+
#' @param is_object An object of class `"psis"/"tis"/"sis"`, as returned by the `psis()`/`tis()`/`sis()` function.
450450
#' @return A `'importance_sampling_loo'` object as described in the Value section of the [loo()]
451451
#' function documentation.
452452
#'

R/loo_subsample.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ estimator_choices <- function() {
471471

472472
#' Utility function to apply user-specified log-likelihood to a single data point
473473
#' @details
474-
#' See [elpd_loo_approximation] and [compute_lpds] for usage examples
474+
#' See `elpd_loo_approximation` and `compute_lpds` for usage examples
475475
#' @noRd
476476
#'
477477
#' @return lpd value for a single data point i
@@ -487,7 +487,7 @@ lpd_i <- function(i, llfun, data, draws) {
487487
#' using platform-dependent parallel backends when cores > 1
488488
#'
489489
#' @details
490-
#' See [elpd_loo_approximation] for usage examples
490+
#' See `elpd_loo_approximation` for usage examples
491491
#'
492492
#' @noRd
493493
#' @return a vector of computed log probability densities

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# loo <img src="man/figures/stanlogo.png" align="right" width="120" />
1+
# loo <img src="man/figures/logo.svg" align="right" width="120" />
22

33
<!-- badges: start -->
44
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/loo?color=blue)](https://cran.r-project.org/web/packages/loo)

_pkgdown.yml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,40 @@
11
url: https://mc-stan.org/loo/
2+
23
destination: "docs/"
4+
35
template:
46
package: pkgdownconfig
7+
58
development:
69
mode: auto
710

811
navbar:
912
title: "loo"
1013

1114
structure:
12-
left: [home, vignettes, functions, pkgs, news, stan]
13-
right: [search, bluesky, twitter, forum, github, lightswitch]
15+
left: [home, vignettes, functions, news, pkgs, stan]
16+
right: [search, bluesky, forum, github, lightswitch]
1417

1518
components:
16-
home:
17-
icon: fa-home fa-lg
18-
href: index.html
19-
vignettes:
20-
text: Vignettes
21-
href: articles/index.html
22-
functions:
23-
text: Functions
24-
href: reference/index.html
2519
pkgs:
2620
text: Other Packages
2721
menu:
28-
- text: rstan
29-
href: https://mc-stan.org/rstan
30-
- text: cmdstanr
31-
href: https://mc-stan.org/cmdstanr
32-
- text: rstanarm
33-
href: https://mc-stan.org/rstanarm
3422
- text: bayesplot
3523
href: https://mc-stan.org/bayesplot
36-
- text: shinystan
37-
href: https://mc-stan.org/shinystan
24+
- text: cmdstanr
25+
href: https://mc-stan.org/cmdstanr
26+
- text: posterior
27+
href: https://mc-stan.org/posterior
3828
- text: projpred
3929
href: https://mc-stan.org/projpred
30+
- text: rstan
31+
href: https://mc-stan.org/rstan
32+
- text: rstanarm
33+
href: https://mc-stan.org/rstanarm
4034
- text: rstantools
4135
href: https://mc-stan.org/rstantools
42-
- text: posterior
43-
href: https://mc-stan.org/posterior
36+
- text: shinystan
37+
href: https://mc-stan.org/shinystan
4438

4539
articles:
4640
- title: Getting started

inst/CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bibentry(bibtype = "Article",
3434
person("Aki", "Vehtari")),
3535
journal = "Bayesian Analysis",
3636
year = "2025",
37-
note = "accepted for publication",
37+
note = "doi:10.1214/24-BA1453",
3838
header = "To cite when using loo_compare():"
3939
)
4040

man-roxygen/loo-and-compare-references.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#'
1313
#' Sivula, T, Magnusson, M., Matamoros A. A., and Vehtari, A. (2025).
1414
#' Uncertainty in Bayesian leave-one-out cross-validation based model
15-
#' comparison. *Bayesian Analysis*, accepted for publication.
16-
#' [preprint arXiv:2008.10296v5.](https://arxiv.org/abs/2008.10296v5).
15+
#' comparison. *Bayesian Analysis*,
16+
#' [doi:10.1214/25-BA1569](https://doi.org/10.1214/25-BA1569).
1717
#'
1818
#' McLatchie, Y., and Vehtari, A. (2024). Efficient estimation and
1919
#' correction of selection-induced bias with order statistics.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#' @references
22
#' Sivula, T, Magnusson, M., Matamoros A. A., and Vehtari, A. (2025).
33
#' Uncertainty in Bayesian leave-one-out cross-validation based model
4-
#' comparison. *Bayesian Analysis*, accepted for publication.
5-
#' [preprint arXiv:2008.10296v5.](https://arxiv.org/abs/2008.10296v5).
4+
#' comparison. *Bayesian Analysis*,
5+
#' [doi:10.1214/25-BA1569](https://doi.org/10.1214/25-BA1569).

0 commit comments

Comments
 (0)