File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -273,14 +273,19 @@ addIterations <- function(
273273 }
274274
275275 # Keep track of performance.
276- scoreSummary <- rbind(
277- scoreSummary
278- , data.table(
279- " Epoch" = rep(Epoch ,nrow(NewResults ))
280- , " Iteration" = 1 : nrow(NewResults ) + nrow(scoreSummary )
281- , " inBounds" = rep(TRUE ,nrow(NewResults ))
282- , NewResults
276+ # fill is true because users can pass their own columns.
277+ scoreSummary <- rbindlist(
278+ list (
279+ scoreSummary
280+ , data.table(
281+ " Epoch" = rep(Epoch ,nrow(NewResults ))
282+ , " Iteration" = 1 : nrow(NewResults ) + nrow(scoreSummary )
283+ , " inBounds" = rep(TRUE ,nrow(NewResults ))
284+ , NewResults
285+ )
283286 )
287+ , use.names = TRUE
288+ , fill = TRUE
284289 )
285290 optObj $ scoreSummary <- scoreSummary
286291 optObj $ GauProList $ gpUpToDate <- FALSE
You can’t perform that action at this time.
0 commit comments