Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse provided holiday list into a dataframe
Summary: Currently, we pass `self.holidays` into `get_holiday_dates` to infer all the holidays that require adjustments to anomaly scores. Unfortunately, `self.holidays` is `None` in predict calls -- it's only [instantiated](https://fburl.com/code/pauwfwhb) when calling `fit()`. In 1D, since we create a new ProphetModel instance when calling `predict()` (with the underlying fbprophet model passed in), `self.holidays` will be None on that recreated instance. Thus, explicitly create a dataframe with the holidays on predict calls. Reviewed By: irumata Differential Revision: D56586165 fbshipit-source-id: df156e7bd6d5ecbbd47674d769f8316788c98c02
- Loading branch information