File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments