Hi so I'm trying to do hyperparameter tuning for a prophet model, and I'd like to see the effect of tuning the hyperparameters to the trend, seasonality, and holiday by using plot_components() and it returns the visualization for all three components. Is there a way to only visualize one component, for example, only the seasonality, so that I can see how changing seasonality_prior_scale parameter changes the seasonality?
I tried using model.plot_components(forecast[['ds','weekly']]) but obviously it doesn't work..
Absolutely yes. I do all of this work in R, so here is the R code.
The fpp3 library includes a number of data sets and some amazing functions for working with time series, so we can make a reproducible example. We begin by splitting the data into training (60%) and testing (40%) amounts. The 60% and 40% are my choices, there is nothing special about those values.
3, fit a model to the training data, using a prophet model:
returns:
You can then plot any of the other seasonality columns to see how that changes the results. I've attached the yearly and weekly seasonality as examples.
