multiplicative_seasonality.md (prophet-1.0) | : | multiplicative_seasonality.md (prophet-1.1) | ||
---|---|---|---|---|
skipping to change at line 63 | skipping to change at line 63 | |||
# R | # R | |||
prophet_plot_components(m, forecast) | prophet_plot_components(m, forecast) | |||
``` | ``` | |||
```python | ```python | |||
# Python | # Python | |||
fig = m.plot_components(forecast) | fig = m.plot_components(forecast) | |||
``` | ``` | |||
 |  | |||
With `seasonality_mode='multiplicative'`, holiday effects will also be modeled a s multiplicative. Any added seasonalities or extra regressors will by default us e whatever `seasonality_mode` is set to, but can be overriden by specifying `mod e='additive'` or `mode='multiplicative'` as an argument when adding the seasonal ity or regressor. | With `seasonality_mode='multiplicative'`, holiday effects will also be modeled a s multiplicative. Any added seasonalities or extra regressors will by default us e whatever `seasonality_mode` is set to, but can be overridden by specifying `mo de='additive'` or `mode='multiplicative'` as an argument when adding the seasona lity or regressor. | |||
For example, this block sets the built-in seasonalities to multiplicative, but i ncludes an additive quarterly seasonality and an additive regressor: | For example, this block sets the built-in seasonalities to multiplicative, but i ncludes an additive quarterly seasonality and an additive regressor: | |||
```R | ```R | |||
# R | # R | |||
m <- prophet(seasonality.mode = 'multiplicative') | m <- prophet(seasonality.mode = 'multiplicative') | |||
m <- add_seasonality(m, 'quarterly', period = 91.25, fourier.order = 8, mode = ' additive') | m <- add_seasonality(m, 'quarterly', period = 91.25, fourier.order = 8, mode = ' additive') | |||
m <- add_regressor(m, 'regressor', mode = 'additive') | m <- add_regressor(m, 'regressor', mode = 'additive') | |||
``` | ``` | |||
```python | ```python | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |