Skip to content

Commit 20d0613

Browse files
committed
Delete verbose
1 parent 25bc190 commit 20d0613

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/machine_learning.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ compute_k_fold_CV = function(model, k_folds, n_rep, stacking = FALSE, metric = "
426426

427427
# Iterate across folds and inside each subfold corresponding to each param combination (if exist)
428428
for (fold_i in seq_along(result_files)) { ### number of folds (k_fold x n_rep)
429+
cat("Running ML models with fold", fold_i, "\n")
429430

430431
result = readRDS(result_files[[fold_i]]) ## per resample
431432

@@ -450,7 +451,6 @@ compute_k_fold_CV = function(model, k_folds, n_rep, stacking = FALSE, metric = "
450451
models <- lapply(
451452
ml_methods_names,
452453
function(method) {
453-
cat("Running model", method, "with param configuration", parameter_i, "and fold", fold_i, "\n")
454454
tune_grid <- get_tune_grid(method, train_data)
455455

456456
model_name <- if (method %in% c("lasso", "ridge")) "glmnet" else method
@@ -482,7 +482,6 @@ compute_k_fold_CV = function(model, k_folds, n_rep, stacking = FALSE, metric = "
482482
models = lapply(
483483
ml_methods_names,
484484
function(method){
485-
cat("Running model...", method)
486485

487486
tune_grid = NULL
488487
if(method == "glmnet"){

0 commit comments

Comments
 (0)