Skip to content

Commit 6b663c5

Browse files
committed
comment out applyFolds to reduce compilation run time
1 parent f5122a1 commit 6b663c5

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

vignettes/density-on-scalar_birth.Rnw

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,11 +235,13 @@ model <- FDboost(birth_densities_clr ~ 1 + bolsc(sex, df = 1) +
235235
@
236236

237237
To determine the optimal stopping iteration we perform a $10$-fold bootstrap.
238-
This is rather time-consuming (especially in the continuous case, when the response densities are evaluated at many grid-values) and preferably should be executed parallelized on multiple cores.
238+
This is rather time-consuming (especially in the continuous case, when the response densities are evaluated at many grid-values) and preferably should be executed parallelized on multiple cores. In order to avoid long compilation times for the vignette, the following code is commented out, but it should be possible to obtain the same stopping iteration within a few minutes.
239239
<<get-mstop, echo = TRUE, message=FALSE>>=
240-
set.seed(1708)
241-
folds <- applyFolds(model, folds = cv(rep(1, model$ydim[1]), type = "bootstrap", B = 10))
242-
model <- model[mstop(folds)] # mstop(folds): 999
240+
# set.seed(1708)
241+
# folds <- applyFolds(model, folds = cv(rep(1, model$ydim[1]), type = "bootstrap", B = 10))
242+
# ms <- mstop(folds) # = 999
243+
ms <- 999
244+
model <- model[ms]
243245
@
244246

245247
Our final object \texttt{model} contains the fit of model~\eqref{model_clr}, i.e., on clr-level.

0 commit comments

Comments
 (0)