Prophet: Tuning regularization parameter changepoint prior scale

Created on 2 Oct 2019  路  5Comments  路  Source: facebook/prophet

I am new to FBProphet, is there any way to tune this parameter for best match mae or rmse? If we are trying to automate a forecast, how do we set this such that the result accuracy is improved by comparing between different changepoint prior scale values?

All 5 comments

You can try this

Hi sammourad, I guess the question was a little unclear. I am already doing what you mentioned on the medium blog post. Let me re-phrase the question: How do I perform parameter tuning on FB prophet using parameters like changepoint prior scale and seasonality prior scale? Is there documentation on how to improve quality of forecast or reduce MAE?

On a practical note, I'd recommend tuning these parameter on a log scale, like described briefly here: https://github.com/facebook/prophet/issues/1009#issuecomment-502208570 . This can be done using random search, where you randomly generate values within the search range, and then use cross validation to evaluate how good a particular set of parameters is: https://facebook.github.io/prophet/docs/diagnostics.html

That would be the fully automated approach. I do also find that visual inspection is helpful for determining which aspects of the time series are being under/over-fit.

Bayesian Hyperparameter Optimization for R Prophet Model Parameters is detailed here:
http://rpubs.com/tdneumann/351073

How about create a loop and iterate with various values of changepoint.prior.scale.
Then at the end of the lop pick the changepoint.prior.scale that has the minimum error and apply it to the final model

Was this page helpful?
0 / 5 - 0 ratings

Related issues

L471 picture L471  路  3Comments

ahash52 picture ahash52  路  3Comments

robertdknight picture robertdknight  路  3Comments

davidjayjackson picture davidjayjackson  路  3Comments

maxwell873 picture maxwell873  路  3Comments