Skip to content

Commit

Permalink
set cores = 1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCatalina committed Sep 12, 2021
1 parent 0ba3085 commit 857bb53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ approximate_kfold.vselsearch <- function(object,
penalty = NULL,
refit_proj = TRUE,
seed = NULL,
cores = NULL,
cores = 1,
...) {
refmodel <- object$refmodel
family <- refmodel$family
Expand Down Expand Up @@ -812,7 +812,7 @@ cv_loo.vselapproxcv <- function(object,
thresh = 1e-6,
regul = 1e-4,
seed = NULL,
cores = NULL,
cores = 1,
search_terms = NULL,
...) {
search_path_prev <- object$search_path
Expand Down Expand Up @@ -1129,7 +1129,7 @@ cv_kfold.vselapproxcv <- function(object,
nlambda = 150,
thresh = 1e-6,
regul = 1e-4,
cores = NULL,
cores = 1,
seed = NULL,
search_terms = NULL,
...) {
Expand Down Expand Up @@ -1524,7 +1524,7 @@ varsel_cv.vselapproxcv <- function(object,
seed = NULL,
search_terms = NULL,
cv_search = TRUE,
cores = NULL,
cores = 1,
...) {
search_path <- object$search_path
refmodel <- search_path$refmodel
Expand Down

0 comments on commit 857bb53

Please sign in to comment.