Should I use prophet cross validation results to compare 2 models ?

Open
#2,606 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with the diagnostics documentation at the linked hyperparameter-tuning section and issue #1409. Determine whether the cross-validation guidance and changepoint_prior_scale range need clarification for comparing models, then document the expected interpretation and recommendation for users.

Written by the indexing model from the issue text.

Description

According to this #1409 issue, we have to do model.fit() on entire time series before cross validation so that the attributes are all fixed for all CV runs. I get that but would it not slightly defeat the purpose of cross validation while hyperparameter tuning. I am comparing two models on the basis of their CV results. One model is having a very high changepoint_prior_scale around 0.95 and another one is lower around 0.5. Other things are mostly the same. I am guessing since the models are first fit on entire data including CV data and first one is more flexible for trend (potentially overfitted?) it would probably give better cv results than the other. It does not make the first model better for unseen data.

I was trying to follow recommended ranges from the documentation in which it is written for changepoint_prior_scale a range of [0.001, 0.5] would likely be about right. Link:
https://facebook.github.io/prophet/docs/diagnostics.html#hyperparameter-tuning

Dominant language
Python
Stars
20.5k
Forks
4.6k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from facebook/prophet

All issues in facebook/prophet

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.