Skip to content

Commit 3544816

Browse files
authored
Merge pull request #1149 from tidymodels/fix-1143
remove unused helper functions
2 parents 9ff25ed + ca5e0e0 commit 3544816

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

R/loop_over_all_stages-helpers.R

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -324,26 +324,6 @@ extend_grid <- function(...) {
324324
list(...) |> purrr::map(remove_stage) |> purrr::list_cbind()
325325
}
326326

327-
# ------------------------------------------------------------------------------
328-
# pre-allocating predictions
329-
330-
initialize_pred_reserve <- function(predictions, grid_size) {
331-
if (!tibble::is_tibble(predictions)) {
332-
predictions <- dplyr::as_tibble(predictions)
333-
}
334-
grid_size <- max(1, grid_size)
335-
ptype <- predictions[0, ]
336-
size <- nrow(predictions) * grid_size
337-
res <- ptype[1:size, ]
338-
dplyr::as_tibble(res)
339-
}
340-
341-
replace_reserve_rows <- function(iter, chunk) {
342-
start_loc <- (iter - 1) * chunk + 1
343-
end_loc <- iter * chunk
344-
start_loc:end_loc
345-
}
346-
347327
# ------------------------------------------------------------------------------
348328
# Add .config to grid
349329

0 commit comments

Comments
 (0)