Ben Letham
64d54e7748
Fixing some holiday parsing for R csv file
2020-02-04 15:23:11 -08:00
Ben Letham
f640308395
Update holidays csv for R, and fix bad utf-8 parsing
2020-02-04 15:12:28 -08:00
Ben Letham
398d220743
Merge branch 'master' of https://github.com/facebookincubator/prophet
2020-02-04 14:34:05 -08:00
Ben Letham
b372feb31f
avoid warning when using tibble ( #1128 )
2020-02-04 14:33:39 -08:00
Adriano Fantini
187bf06bf7
pass ... from dyplot.prophet to dygraph::dygraph, addresses #1158 ( #1177 )
...
* 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>
2020-02-04 13:39:17 -08:00
Ben Letham
9320ed1fb5
Add test for MCMC with 0 changepoints (R)
2020-02-04 13:32:26 -08:00
Ben Letham
be25372090
improvements in docstrings and testing for disabling uncertainty
2020-02-04 13:22:08 -08:00
Ben Letham
8d0f23f8be
Add unit tests for disabling uncertainty estimation in R
2020-02-04 13:05:28 -08:00
Ben Letham
6e51130f28
Use fit kwargs in cross validation ( #1040 )
2020-02-03 17:02:23 -08:00
Ben Letham
4fcecdb3df
Fix bugs that were introduced into R cross validation
2020-02-03 16:18:46 -08:00
ben-schwen
bbadf65e3b
added test case for valid_metrics
2020-01-27 13:53:11 -08:00
ben-schwen
5b58ad13cb
fix output of valid metrics in performance_metrics
2020-01-27 13:53:11 -08:00
Ben Letham
83f66dadfd
Typo fix
2019-11-06 15:34:14 -08:00
Maxim Grishin
a3ae4715bb
Make Python version consistent with R
2019-10-22 17:28:27 -07:00
bl
c7a150312a
Bugfix for R uncertainty sample handling
2019-10-18 17:06:58 -07:00
Mitchell
f4d997e0ac
Fix usage of uncertainty.samples
2019-10-16 16:48:49 -07:00
Ryan Nazareth
a2a0df904e
Disabling plotting uncertainties if m.samples is False or 0
2019-10-07 14:17:54 -07:00
Ryan Nazareth
36f3ddc436
Correct syntax issues
2019-10-07 14:17:54 -07:00
Ryan Nazareth
c95eb0dcd9
Disabling calculation of uncertainties if uncertainty.samples is not True
2019-10-07 14:17:54 -07:00
Ryan Nazareth
eb797eefaa
Adapt model cv with 0 uncertainty samples and fix performance metrics
2019-10-07 14:17:54 -07:00
Jireh Tan
e8ddded4fe
[BUG] Ensure regressor/seasonality names are valid; fixes #996
...
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
2019-06-25 09:39:14 -07:00
Jireh Tan
a554873a38
[BUG/TST] Add validation to prevent fourier.order <= 0; addresses #980
...
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
2019-06-21 15:27:31 -07:00
Ben Letham
7ff33137eb
Change to MIT license
2019-05-21 11:40:04 -07:00
Sean J. Taylor
39e356ddbe
Readying for 0.5 release
2019-05-13 23:00:12 -07:00
Ben Letham
f09ad61c26
R documentation updates
2019-05-13 15:47:28 -07:00
Ben Letham
28cd55241f
Verify that cap > floor ( #807 )
2019-05-13 13:11:07 -07:00
Ben Letham
269133c133
Change cross validation performance metrics to first aggregate over horizon before computing rolling average ( #839 , #863 )
2019-05-08 10:47:26 -07:00
Ben Letham
e9c017ba01
Default to Newton optimizer if less than 100 datapoints ( #842 , #870 , #888 )
2019-05-07 11:47:36 -07:00
Ben Letham
16b0166518
Bump dplyr requirement to 0.7.7 ( #781 )
2019-05-06 16:44:48 -07:00
Ben Letham
ec7689f03e
R fallback to Newton if non-zero return code from optimization, to match existing Py behavior ( #654 )
2019-05-06 09:49:29 -07:00
Ben Letham
c8f2e8f847
Warn in cross validation if initial period is less than seasonality ( #557 ), and fix bug that can produce error if period > initial
2019-05-03 08:40:20 -07:00
Ben Letham
35d470cbff
Meaningful error message if predict is called before fit (for #462 )
2019-05-02 14:53:57 -07:00
Ben Letham
921b604022
Update R documentation
2019-03-22 11:08:09 -07:00
Ben Letham
c5db6f8619
Update R tests with condition.name
2019-03-22 10:52:53 -07:00
Olof Höjvall
0092638abe
Added conditional seasonality for R ( #894 )
2019-03-22 10:43:52 -07:00
Sean J. Taylor
703c0731f6
Supress warning messages while building model
2018-12-20 17:04:03 -08:00
Sean J. Taylor
151c476030
Fixing bug on development version of R
2018-12-20 12:38:17 -08:00
Sean J. Taylor
211f30039a
Updated changelog and date for R package
2018-12-18 23:07:58 -08:00
Sean J. Taylor
fbd3050a61
Update date in DESCRIPTION
2018-12-05 08:38:26 -08:00
Sean J. Taylor
a5da086ba0
Clean non-ASCII characters out of generated_holidays
2018-12-04 14:49:44 -08:00
Ben Letham
c9f1ccaa63
Version bump; test fixes; R build
2018-12-03 22:21:37 -08:00
Ben Letham
635ae5a1a6
Have fixed ordering for components plots
2018-12-03 20:14:24 -08:00
Ben Letham
1d398c679d
Allow overriding any of the arguments to stan functions
2018-12-03 19:05:47 -08:00
Thomas J. Leeper
5f6612148a
add Github URLs to DESCRIPTION ( #761 )
2018-12-03 17:01:01 -08:00
Ben Letham
13d96cff8f
Fix type casting for extra regressors, and a shape issue
2018-12-03 15:22:19 -08:00
Ben Letham
fe677f290b
Set rlang requirement to avoid bug in #592
2018-12-03 13:54:08 -08:00
Ben Letham
e3ad97b8b3
Documentation fixes
2018-12-03 13:25:26 -08:00
Ben Letham
536fe931c6
Add documentation for country holidays
2018-12-03 11:54:55 -08:00
Ben Letham
287fb2f6de
Move built-in country holidays to a function (R)
2018-11-30 23:12:19 -08:00
Jennifer (Jenny) Bryan
ebf7b3da0a
Apply colnames *before* coercing to a tbl_df ( #739 )
...
`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
2018-11-21 09:34:17 -08:00
ziye666
95fa4460a9
Fix bug about holiday year different from input year and others ( #670 )
...
* 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
2018-10-18 17:40:17 -07:00
Sean J. Taylor
e3a0586c07
Add xts dependency back and regen docs
2018-06-14 18:42:11 -07:00
Sean J. Taylor
9beb1cb7e7
Version bumps before submitting new packages
2018-06-13 16:03:44 -07:00
Sean J. Taylor
cd84356968
Allow CRAN to build packages on OSX
2018-06-13 11:39:42 -07:00
Ben Letham
bc6360d115
Fix bug in seasonal components with MCMC
2018-06-12 16:53:14 -07:00
Sean J. Taylor
4f224e5ec7
Merge of v0.3 into master
2018-06-02 10:50:58 -07:00
Sean J. Taylor
b92d09cc82
Set dygraphs min version
2018-06-02 08:46:16 -07:00
Ben Letham
107f74f0f2
Allow constant extra regressors
2018-06-01 14:53:45 -07:00
Ben Letham
9a5338cbe4
Documentation update for new plot_components arg
2018-05-31 17:45:44 -07:00
Dmitrij Melichov
e5967a541e
R make rendering of plots by method plot_components optional ( #551 )
2018-05-31 17:41:22 -07:00
Ben Letham
e0cf400e23
R check cleanups
2018-05-30 23:19:56 -07:00
bl
d589859295
Add link to main site from vignette
2018-05-30 17:10:59 -07:00
bl
371e8a3bf4
Version bump
2018-05-30 17:02:47 -07:00
bl
3b20680bfc
Add test i386 test skips for stan tests
2018-05-30 16:40:34 -07:00
bl
f8775433c9
Remove vestigial comments, structure imports
2018-05-30 16:35:17 -07:00
bl
a38aaa38c6
Stan fix for pystan 2.16
2018-05-30 14:23:37 -07:00
Ben Letham
218283f157
Simplify logic/interfaces for cross_validation, to better handle irregularly spaced data and actually respect initial window
2018-05-30 12:09:54 -07:00
Ben Letham
cdc313584e
Switch future changepoint generation to fully continuous model
2018-05-29 21:47:11 -07:00
Ben Letham
7277e6c3b2
Better error messaging for required columns ds and y
2018-05-29 16:17:59 -07:00
Ben Letham
41d4ab472f
Set noise prior variance to current value for linear growth model
2018-05-29 14:41:36 -07:00
Ben Letham
68ff9e577d
Fix issue in Python when changepoint_range=1
2018-05-25 17:00:27 -07:00
Ben Letham
cb0b47994b
Validation and tests for setting range for automatic changepoints
2018-05-25 16:45:24 -07:00
Marc Ferradou
ba1bac834e
Adding changepoint threshold ( #299 )
2018-05-25 15:53:19 -07:00
Ben Letham
2d6e249391
Consistent plot styling in dygraph plot
2018-05-25 15:21:28 -07:00
Ben Letham
663214393e
Minor stan simplifications
2018-05-25 13:57:45 -07:00
Ben Letham
ab09fbcd6e
Remove vestigial reference to seasonal column
2018-05-16 12:42:45 -07:00
Ben Letham
3bd372bc15
Speed up stan fitting by removing unecessary parameter definitions
2018-05-15 13:26:46 -07:00
Ben Letham
7c010aac51
Multiplicative seasonality (R)
2018-05-15 10:07:38 -07:00
Ben Letham
8e8e04858a
Move copy test to test_diagnostics
2018-05-04 16:15:43 -07:00
Ben Letham
b052b56d33
Refactor cross validation metrics for rolling window, add visualization, put example in notebook (R)
2018-05-04 15:07:35 -07:00
Ben Letham
3afdaaf4e1
Move copy from method to function in diagnostics file
2018-05-03 11:42:10 -07:00
Ben Letham
3da46503ed
Add utility for plotting changepoints (Py), and put in plotting file (R and Py)
2018-05-03 11:10:11 -07:00
Ben Letham
0c30f6efcf
Merge in some minor fixes from master
2018-04-20 18:48:21 -07:00
Ben Letham
aa4e223152
Combine trend models into a single stan file (R)
2018-04-20 17:23:11 -07:00
Ben Letham
1f84fa960f
Move changepoint matrix calculation into stan (R)
2018-04-20 15:20:38 -07:00
Andy Pohl
1722e99554
unaddressed warnings from unit tests ( #450 )
...
* unaddressed warnings from unit tests
* devtools wants Encoding set or it complains through testthat::check()
2018-04-18 17:06:39 -07:00
Ben Letham
f54d3b50ae
R set_date robust to NAs
2018-02-01 17:21:55 -08:00
Ben Letham
7b9acd953f
Add error message if make_future_dataframe before fit
2018-02-01 16:21:57 -08:00
Nagi Teramo
14d5028a73
Implement metrics for time series forecasts ( #384 )
...
* 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
2018-01-05 16:05:58 -08:00
Ben Letham
a6d68497f1
Revert "Merge branch 'v0.3' into master"
...
This reverts commit 011a292427 , reversing
changes made to 5d453c1d05 .
2017-12-22 16:32:54 -08:00
Ben Letham
014b3b5919
Merge bugfixes from master into v0.3 ( #393 )
...
* 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
2017-12-22 16:30:18 -08:00
Ben Letham
011a292427
Merge branch 'v0.3' into master
2017-12-22 16:29:52 -08:00
Ben Letham
07138f7deb
R package doc update for dygraph addition
2017-12-22 13:36:46 -08:00
Ben Letham
a19589a662
Fix merge issues
2017-12-22 12:19:09 -08:00
Willy Hardy
451c886c73
Added dygraphs functionality. ( #320 )
...
* Added dygraphs functionality.
* reversed the unintentional inclusion of prophet_copy
* namespaced functions and corrected %>% typo
2017-12-22 12:09:11 -08:00
bletham
5d453c1d05
Fix missing columns in SHF with extra regressor
2017-11-09 21:19:51 -08:00
Ben Letham
0c3f30fd94
Version bump
2017-11-08 10:43:51 -08:00
Ben Letham
e78f583f90
Merge in bugfixes from master ( #349 )
...
* 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
2017-11-08 10:09:08 -08:00
bl
af80f9c94e
Fix weekly_start and yearly_start in R plot_components
2017-11-05 15:57:59 -08:00
bletham
0addabcad7
Fix copy with extra seasonalities / regressors R
2017-11-04 21:40:45 -07:00