This commit is contained in:
Mike Tokic 2024-07-30 13:34:08 -07:00
Родитель 88fbb8a9bf
Коммит 81687c873e
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -398,7 +398,7 @@ ensemble_models <- function(run_info,
pkgs = inner_packages, pkgs = inner_packages,
parallel_over = "everything" parallel_over = "everything"
) )
) %>% ) %>%
base::suppressMessages() %>% base::suppressMessages() %>%
base::suppressWarnings() base::suppressWarnings()

Просмотреть файл

@ -518,7 +518,7 @@ svm_poly_multistep_predict_impl <- function(object, new_data, ...) {
preds_svm_poly <- preds_svm_poly %>% preds_svm_poly <- preds_svm_poly %>%
dplyr::mutate(Row_Num = xreg_tbl_final$Row_Num) dplyr::mutate(Row_Num = xreg_tbl_final$Row_Num)
start_val <- as.numeric(lag_number) + 1 start_val <- as.numeric(lag_number) + 1
final_prediction <- rbind(final_prediction, preds_svm_poly) final_prediction <- rbind(final_prediction, preds_svm_poly)
} }

Просмотреть файл

@ -515,11 +515,11 @@ train_models <- function(run_info,
pkgs = inner_packages, pkgs = inner_packages,
parallel_over = "everything" parallel_over = "everything"
) )
) %>% ) %>%
tune::collect_predictions() %>% tune::collect_predictions() %>%
base::suppressMessages() %>% base::suppressMessages() %>%
base::suppressWarnings() base::suppressWarnings()
# finalize forecast # finalize forecast
final_fcst <- refit_tbl %>% final_fcst <- refit_tbl %>%
dplyr::rename( dplyr::rename(
@ -535,9 +535,9 @@ train_models <- function(run_info,
) %>% ) %>%
dplyr::mutate(Hyperparameter_ID = hyperparameter_id) %>% dplyr::mutate(Hyperparameter_ID = hyperparameter_id) %>%
dplyr::select(-.row, -.config) dplyr::select(-.row, -.config)
# check for future forecast # check for future forecast
if(as.numeric(min(unique(final_fcst$Train_Test_ID))) != 1) { if (as.numeric(min(unique(final_fcst$Train_Test_ID))) != 1) {
stop("model is missing future forecast") stop("model is missing future forecast")
} }