Skip to content

Commit

Permalink
Factored basic workflow for model and predictions
Browse files Browse the repository at this point in the history
  • Loading branch information
topepo committed Jul 12, 2017
1 parent 969bc32 commit 51b3497
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 174 deletions.
2 changes: 0 additions & 2 deletions pkg/caret/R/recipes.R
Original file line number Diff line number Diff line change
Expand Up @@ -990,8 +990,6 @@ train_rec <- function(rec, dat, info, method, ctrl, lev, testing = FALSE, ...) {

result <- foreach(iter = seq(along = resampleIndex), .combine = "c", .packages = pkgs, .export = export) %:%
foreach(parm = 1L:nrow(info$loop), .combine = "c", .packages = pkgs, .export = export) %op% {

testing <- FALSE

if(!(length(ctrl$seeds) == 1L && is.na(ctrl$seeds)))
set.seed(ctrl$seeds[[iter]][parm])
Expand Down

0 comments on commit 51b3497

Please sign in to comment.