* Pass ... from dyplot.prophet to dygraph to be able to set additional parameters
* Add documentation for ... in dyplot.prophet
Co-authored-by: Ben Letham <bletham@gmail.com>
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
`dplyr::as_data_frame()` is really `tibble::as_tibble()`. An upcoming
release of tibble will be stricter about column names and, by default,
you can't have duplicate column names. This change allows prophet to
work with current CRAN tibble (v1.4.2) and the coming release.
cc @krlmlr
* 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
* efficiency improvements in r package
* add drop = FALSE to df subsetting
* adding two more drop = FALSE
* add back in global var vector
* revert to previous style of piecewise_linear, piecewise_logistic
* more reversion
* even more reversion
* revert get_changepoint_matrix
* trying to pinpoint issues
* more debugginh
* tests finally pass
* last commit of pr
* last commit of pr
* add utils to imports