We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9770f5 commit 81265dbCopy full SHA for 81265db
R/permshap.R
@@ -90,7 +90,7 @@ permshap.default <- function(object, X, bg_X, pred_fun = stats::predict,
90
precalc <- list(
91
Z = Z,
92
Z_code = rowpaste(Z),
93
- bg_X_rep = rep_rows(bg_X, rep(seq_len(bg_n), times = m_exact))
+ bg_X_rep = rep_rows(bg_X, rep.int(seq_len(bg_n), m_exact))
94
)
95
96
if (m_exact * bg_n > 2e5) {
0 commit comments