Skip to content

Commit 02f4466

Browse files
committed
Supressed warnings
1 parent 99e0f6f commit 02f4466

2 files changed

Lines changed: 2 additions & 66 deletions

File tree

R/psis.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ do_psis_i <- function(log_ratios_i, tail_len_i, ...) {
221221
)
222222
}
223223

224-
smoothed <- posterior::ps_tail(
224+
smoothed <- suppressWarnings(posterior::ps_tail(
225225
x = lw_i,
226226
ndraws_tail = tail_len_i,
227227
tail = "right",
228228
are_log_weights = TRUE
229-
)
229+
))
230230

231231
lw_i <- smoothed$x
232232
khat <- smoothed$k

tests/testthat/_snaps/psis.md

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4801,70 +4801,6 @@
48014801
Warning:
48024802
Not enough tail samples to fit the generalized Pareto distribution in some or all columns of matrix of log importance ratios. Skipping the following columns: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ... [22 more not printed].
48034803
Warning:
4804-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4805-
Warning:
4806-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4807-
Warning:
4808-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4809-
Warning:
4810-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4811-
Warning:
4812-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4813-
Warning:
4814-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4815-
Warning:
4816-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4817-
Warning:
4818-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4819-
Warning:
4820-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4821-
Warning:
4822-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4823-
Warning:
4824-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4825-
Warning:
4826-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4827-
Warning:
4828-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4829-
Warning:
4830-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4831-
Warning:
4832-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4833-
Warning:
4834-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4835-
Warning:
4836-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4837-
Warning:
4838-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4839-
Warning:
4840-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4841-
Warning:
4842-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4843-
Warning:
4844-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4845-
Warning:
4846-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4847-
Warning:
4848-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4849-
Warning:
4850-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4851-
Warning:
4852-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4853-
Warning:
4854-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4855-
Warning:
4856-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4857-
Warning:
4858-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4859-
Warning:
4860-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4861-
Warning:
4862-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4863-
Warning:
4864-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4865-
Warning:
4866-
Can't fit generalized Pareto distribution because ndraws_tail is less than 5.
4867-
Warning:
48684804
Some Pareto k diagnostic values are too high. See help('pareto-k-diagnostic') for details.
48694805
Output
48704806
Computed from 10 by 32 log-weights matrix.

0 commit comments

Comments
 (0)