Skip to content

Commit 269750e

Browse files
committed
Renamed to "InputCollect$prophet_custom_output"
1 parent de8bad9 commit 269750e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

R/R/inputs.R

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ robyn_inputs <- function(dt_input = NULL,
326326
hyperparameters = hyperparameters,
327327
calibration_input = calibration_input,
328328
#! SH
329-
prophet_model = NULL,
329+
prophet_custom_output = NULL,
330330
custom_params = list(...)
331331
)
332332

@@ -760,14 +760,14 @@ robyn_engineering <- function(x, quiet = FALSE, ...) {
760760
custom_params = custom_params
761761
)
762762
dt_transform <- dt_transform_original$dt_transform
763-
prophet_model <- dt_transform_original$prophet_model
763+
prophet_custom_output <- dt_transform_original$prophet_custom_output
764764
}
765765

766766
################################################################
767767
#### Finalize enriched input
768768

769769
#! SH
770-
InputCollect$prophet_model <- prophet_model
770+
InputCollect$prophet_custom_output <- prophet_custom_output
771771

772772
dt_transform <- subset(dt_transform, select = c("ds", "dep_var", InputCollect$all_ind_vars))
773773
InputCollect[["dt_mod"]] <- dt_transform
@@ -862,6 +862,8 @@ prophet_decomp <- function(dt_transform, dt_holidays,
862862
#! SH START
863863
message("prophet_model assigned from mod_ohe")
864864
prophet_model <- mod_ohe
865+
prophet_input <- dt_ohe
866+
865867
#! SH END
866868
}
867869
} else {
@@ -876,6 +878,8 @@ prophet_decomp <- function(dt_transform, dt_holidays,
876878

877879
#! SH START
878880
message("prophet_model assigned from mod")
881+
prophet_model <- mod
882+
prophet_input <- dt_regressors
879883
#! SH END
880884
}
881885

@@ -889,9 +893,12 @@ prophet_decomp <- function(dt_transform, dt_holidays,
889893

890894
# return (dt_transform)
891895

892-
#! SH START
896+
#! SH START
893897
# Needed to return multiple objects
894-
return(list(dt_transform = dt_transform, prophet_model = prophet_model))
898+
prophet_custom_output <- list(prophet_model = prophet_model,
899+
prophet_input = prophet_input)
900+
return(list(dt_transform = dt_transform,
901+
prophet_custom_output = prophet_custom_output))
895902
#! SH END
896903
}
897904

0 commit comments

Comments
 (0)