Ensures that `add_regressor` and `add_seasonality` are valid column names
to R, to ensure that the generated columns are then used downstream to fit
the model.
Why not put it in `validate_column_names`? Because `validate_column_names` is
also used to validate if holiday names (which can be scalar values in columns) are
valid. We want to allow `c('seans-bday', 'Xmas')` as a valid holiday input, so we
cannot then put it there.
Tested these changes by using devtools::testthat().
Resolves: #996
In reverse order of importance, this change addresses:
- #980, by adding validation to ensure that `fourier.order` > 0
- changes all the tests that `expect_error` using the argument
`fourier_order`, as the argument is named `fourier.order`, so
the intent of the test is to validate the holiday names rather
than to check the use of the correct argument name
Resolves: #980
* Allow both both hoidays and append holidays
Match holidays in predict and fit
Add test for append_holiday features; minor fixes
Add column name validation for append_holidays names; allow only one country
Fix bug about holiday year different from input year and also other bugs
Change function description
Add append holiday feature for R
* Add test for R/Pyrhon; fix bugs
* Add metrics for model validation
* Update to reflect comments on Github
* Change all_metrics() implementation to more sophisticated style
* Update metrics functions
* Remove redundant argument
* Use v0.3 files for diagnostics.R and prophet.R
* Use v0.3 file for man/predict.prophet.Rd
* Change the interface and do some refactoring
* Update memory requirement description per #326
* Fix R warning with extra regressor; disallow constant extra regressors.
* Fix unit test broken in new pandas
* Fix diagnostics unit tests for new pandas
* Fix copy with extra seasonalities / regressors Py
* Fix copy with extra seasonalities / regressors R
* Fix weekly_start and yearly_start in R plot_components
* Fix plotting in pandas 0.21 by using pydatetime instead of numpy
* Version bump
* Update README for new version
* Fix missing columns in SHF with extra regressor
* Update memory requirement description per #326
* Fix R warning with extra regressor; disallow constant extra regressors.
* Fix unit test broken in new pandas
* Fix diagnostics unit tests for new pandas
* Fix copy with extra seasonalities / regressors Py
* Fix copy with extra seasonalities / regressors R
* Fix weekly_start and yearly_start in R plot_components
* Fix plotting in pandas 0.21 by using pydatetime instead of numpy
* Add support for fitting daily seasonality, make holiday features work
when daily seasonality is enabled
* fix wrong comment in make_future_dataframe()