Skip to content

Commit b565fb8

Browse files
committed
Merge branch 'master' of https://github.com/ParadaCarleton/loo into ParadaCarleton/master
2 parents 33094d7 + 30873f2 commit b565fb8

32 files changed

Lines changed: 230 additions & 115 deletions

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ vignettes/loo2-non-factorized_cache/*
2525
^_pkgdown\.yml$
2626
^pkgdown$
2727
^touchstone$
28+
^.git-blame-ignore-revs
29+
^notes-release.md

.github/workflows/R-CMD-check.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
R_KEEP_PKG_SOURCE: yes
3131

3232
steps:
33-
- uses: actions/checkout@v6
33+
- uses: actions/checkout@v7
3434

3535
- uses: r-lib/actions/setup-pandoc@v2
3636

.github/workflows/pkgdown.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
permissions:
2424
contents: write
2525
steps:
26-
- uses: actions/checkout@v6
26+
- uses: actions/checkout@v7
2727

2828
- uses: r-lib/actions/setup-pandoc@v2
2929

@@ -33,6 +33,7 @@ jobs:
3333

3434
- uses: r-lib/actions/setup-r-dependencies@v2
3535
with:
36+
cache-version: 2
3637
extra-packages: |
3738
any::pkgdown
3839
local::.

.github/workflows/test-coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1919

2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@v7
2222

2323
- uses: r-lib/actions/setup-r@v2
2424
with:

.github/workflows/touchstone-comment.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ jobs:
1717
pull-requests: write
1818
if: ${{ github.event.workflow_run.event == 'pull_request' }}
1919
steps:
20-
- name: Download Touchstone artifact
21-
id: download
20+
- name: Download Touchstone comment artifact
21+
id: download_comment
2222
uses: actions/download-artifact@v8
2323
with:
2424
name: pr
25+
path: ./pr
2526
github-token: ${{ github.token }}
2627
repository: ${{ github.repository }}
2728
run-id: ${{ github.event.workflow_run.id }}
@@ -31,7 +32,7 @@ jobs:
3132
id: pr
3233
shell: bash
3334
run: |
34-
number="$(tr -cd '0-9' < ./NR)"
35+
number="$(tr -cd '0-9' < ./pr/NR)"
3536
test -n "$number"
3637
echo "number=$number" >> "$GITHUB_OUTPUT"
3738
@@ -42,5 +43,5 @@ jobs:
4243
GITHUB_TOKEN: ${{ github.token }}
4344
number_force: ${{ steps.pr.outputs.number }}
4445
header: touchstone
45-
path: ./info.txt
46+
path: ./pr/info.txt
4647
skip_unchanged: true

.github/workflows/touchstone-receive.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ permissions:
44
contents: read
55

66
concurrency:
7-
group: ${{ github.workflow }}-${{ github.head_ref }}
7+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
88
cancel-in-progress: true
99

1010
on:
@@ -17,13 +17,14 @@ jobs:
1717
config: ${{ steps.read_touchstone_config.outputs.config }}
1818
steps:
1919
- name: Checkout repo
20-
uses: actions/checkout@v6
20+
uses: actions/checkout@v7
2121
with:
2222
fetch-depth: 0
2323

2424
- id: read_touchstone_config
25+
shell: bash
2526
run: |
26-
echo "config=$(jq -c . ./touchstone/config.json)" >> $GITHUB_OUTPUT
27+
echo "config=$(jq -c . ./touchstone/config.json)" >> "$GITHUB_OUTPUT"
2728
2829
build:
2930
needs: prepare
@@ -33,12 +34,10 @@ jobs:
3334
matrix:
3435
config:
3536
- ${{ fromJson(needs.prepare.outputs.config) }}
37+
env:
38+
RSPM: ${{ matrix.config.rspm }}
3639
steps:
37-
- name: Checkout repo
38-
uses: actions/checkout@v6
39-
with:
40-
fetch-depth: 0
4140
- uses: lorenzwalthert/touchstone/actions/receive@main
4241
with:
4342
r-version: ${{ matrix.config.r }}
44-
touchstone_ref: '@main'
43+
touchstone_ref: "@main"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ tests/testthat/Rplots.pdf
2626
cran-comments.md
2727
CRAN-RELEASE
2828
release-prep.R
29+
CRAN-SUBMISSION

CRAN-SUBMISSION

Lines changed: 0 additions & 3 deletions
This file was deleted.

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: loo
33
Title: Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models
4-
Version: 2.9.0.9000
5-
Date: 2025-12-22
4+
Version: 2.10.1.9000
5+
Date: 2026-07-23
66
Authors@R: c(
77
person("Aki", "Vehtari", email = "Aki.Vehtari@aalto.fi", role = "aut"),
88
person("Jonah", "Gabry", email = "jgabry@gmail.com", role = c("cre", "aut")),

NEWS.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11
# loo (development version)
22

3-
## Breaking changes
3+
* Update user messages in `print()` by @ishaan-arora-1, @florence-bockting in
4+
#328.
45

5-
* `loo_compare()` now returns a data frame instead of a matrix and has
6-
additional columns. Code that relies on matrix-specific behaviour will need to
7-
be updated accordingly by @jgabry, @avehtari, @florence-bockting in #300
6+
# loo 2.10.1
87

9-
## New features
8+
* Revert behavior of internal `psis_smooth_tail()` function that led to several
9+
failing tests not caught by CRAN reverse dependency checks. This change should
10+
not directly affect individual users. by @VisruthSK in #381
11+
* `print.compare.loo()` regains a `simplify` argument for showing the full
12+
comparison table with `simplify = FALSE` by @florence-bockting in #383.
13+
14+
# loo 2.10.0
15+
16+
* Updates to `loo_compare` output by @jgabry, @avehtari, @florence-bockting in #300:
17+
- new output columns `p_worse`, `diag_diff`, `diag_elpd`
18+
- returned object is now a `data.frame` instead of a `matrix`
19+
* Add new `kfold.print` method by @florence-bockting in #342
20+
* Add touchstone performance benchmarks by @VisruthSK in #352
21+
* Use `posterior::gpdfit` and `posterior::qgeneralized_pareto` by @avehtari in #305
22+
* Fix bug in IS method error message + documentation typos by @ishaan-arora-1 in #326
23+
* Shortened `?loo_subsample` title and improved description by @vinniott in #339
24+
* Add AI contribution policy by @florence-bockting in #361
1025

11-
* `loo_compare()` output now includes additional columns: `p_worse`,
12-
`diag_diff`, and `diag_elpd`, providing richer diagnostics for model
13-
comparison by @florence-bockting in #300
1426

1527
# loo 2.9.0
1628

0 commit comments

Comments
 (0)