- .model_type
This is where you will set your engine. It uses
modeltime::prophet_reg()
under the hood and can take one of the following:
"prophet"
Or modeltime::prophet_boost()
under the hood and can take one of the following:
"prophet_xgboost"
You can also choose:
"all_engines" - This will make a model spec for all available engines.
- .recipe_list
You must supply a list of recipes. list(rec_1, rec_2, ...)
- .growth
String 'linear' or 'logistic' to specify a linear or logistic trend.
- .changepoint_num
Number of potential changepoints to include for modeling trend.
- .changepoint_range
Adjusts the flexibility of the trend component by
limiting to a percentage of data before the end of the time series. 0.80
means that a changepoint cannot exist after the first 80% of the data.
- .seasonality_yearly
One of "auto", TRUE or FALSE. Set to FALSE for prophet_xgboost
.
Toggles on/off a seasonal component that models year-over-year seasonality.
- .seasonality_weekly
One of "auto", TRUE or FALSE. Toggles on/off a
seasonal component that models week-over-week seasonality. Set to FALSE for prophet_xgboost
- .seasonality_daily
One of "auto", TRUE or FALSE. Toggles on/off a
seasonal componet that models day-over-day seasonality. Set to FALSE for prophet_xgboost
- .season
'additive' (default) or 'multiplicative'.
- .prior_scale_changepoints
Parameter modulating the flexibility of the
automatic changepoint selection. Large values will allow many changepoints,
small values will allow few changepoints.
- .prior_scale_seasonality
Parameter modulating the strength of the
seasonality model. Larger values allow the model to fit larger seasonal
fluctuations, smaller values dampen the seasonality.
- .prior_scale_holidays
Parameter modulating the strength of the holiday
components model, unless overridden in the holidays input.
- .logistic_cap
When growth is logistic, the upper-bound for "saturation".
- .logistic_floor
When growth is logistic, the lower-bound for "saturation"
- .trees
An integer for the number of trees contained in the ensemble.
- .min_n
An integer for the minimum number of data points in a node
that is required for the node to be split further.
- .tree_depth
An integer for the maximum depth of the tree
(i.e. number of splits) (specific engines only).
- .learn_rate
A number for the rate at which the boosting algorithm
adapts from iteration-to-iteration (specific engines only).
- .loss_reduction
A number for the reduction in the loss function
required to split further (specific engines only).
- .stop_iter
The number of iterations without improvement before
stopping (xgboost only).