Commit graph

512 commits

Author SHA1 Message Date
Ben Letham
d9bea61969 Remvoe no longer necessary test 2020-03-09 15:20:25 -07:00
Ben Letham
44ceaa8d8b Don't use tqdm with multiprocessing starmap 2020-03-09 12:48:14 -07:00
Ryan Nazareth
39c619dbf7
Running Cross-Validation with Multiprocessing Option (#1356)
* Add multiprocessing Pool and create function for single cutoff forecast

* add params to single forecast function

* Add iterable for input params for pool

* Add docstring for single cutoff forecast func

* Add check for multiprocessing in test_cross_validation

* check ofr is None and is True and add better description for multiprocess in docstring

* Raise error if wrong args chosen and add test

* fix conflicts

* Change arg to True/False, model.kwargs

* docstring units and few more fixes

* change to iterator and add back tqdm to for loop

* add option in diagnosics notebook about multiprocessing option

* add extra test for checking calls to single forecast func
2020-03-09 12:25:01 -07:00
Dmitry
fd61fcbeeb
Holidays in Belarus + codestyle (#1380)
* Holidays in Belarus + codestyle

* Correction + changing hardcode with variable
2020-03-06 18:40:58 -08:00
Ryan Nazareth
0ca50cfb7f
Extract stanfit from model object in Py following cmdstanpy refactoring (#1353)
* add self.stan_fit in fit methods

* small changes to fix tests

* make changes to remove self.params from backend classes
2020-03-06 18:11:04 -08:00
Ben Letham
708ae20c04 lower tqdm required version 2020-03-04 16:03:22 -08:00
Ben Letham
d8dd2f53b7
Add progress bar to cross_validation (#1338)
* tqdm

* Added progress bar to the crossvalidation

In order to improve the user experiance a progress bar is added to the crossvalidation loop.

* Update requirements.txt

* Update python/fbprophet/diagnostics.py

* updated further

* Update requirements.txt
2020-03-04 16:01:02 -08:00
Ram Rachum
952b544928
Fix exception causes in 2 modules (#1370)
Co-authored-by: Ben Letham <bletham@gmail.com>
2020-03-03 17:34:06 -08:00
Christopher Suchanek
5842935f41
CmdStan related docs (#1352)
* updated readme

* docs

* fixes

Co-authored-by: Ben Letham <bletham@gmail.com>
2020-03-03 16:42:13 -08:00
JayCarraway
560077c8a7
Add possibility of selecting province of country for creation of holiday (#1340)
dataframe
2020-03-03 16:24:48 -08:00
Ryan Nazareth
0efd3d2abd
Update doc with recommended changepoint prior scales (#1335) 2020-03-03 14:47:52 -08:00
Ryan Nazareth
47961c01af
update quick start notebook plotly 4.0 plot (#1333) 2020-03-03 14:42:12 -08:00
Sean Taylor
8306ae3519 Updated changelog 2020-03-03 11:33:52 -08:00
Sean Taylor
3a4539f199 New ignores 2020-03-02 13:20:12 -08:00
Sean Taylor
6bbac0c47b Store compiled model in platform specific location 2020-03-02 13:20:12 -08:00
Sean Taylor
192b9160a7 Dep for building the vignette + ignore libs + rebuild docs 2020-03-02 13:20:12 -08:00
Sean Taylor
83e2479699 Replace deprecated functions 2020-03-02 13:20:12 -08:00
dependabot[bot]
1f6a265839
Bump nokogiri from 1.10.4 to 1.10.8 in /docs (#1360)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.4 to 1.10.8.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.4...v1.10.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-28 14:32:05 -08:00
Ben Letham
46e5611983 R defer model compiling to first fit, to remove compiling from onLoad per CRAN 2020-02-19 21:30:08 -08:00
Sean Taylor
101dd50e31 Delay some imports to allow installation w/o deps 2020-02-17 17:20:20 -08:00
Ryan Nazareth
59f34ebc5f
suppress plotly error logging (#1332)
* raise logging level to critical for plot module

* remove setlevel for plot logger
2020-02-17 15:00:14 -08:00
Christoph Deil
8c48f5b042
Remove logging.root basicConfig on fbprophet import (#1336) 2020-02-17 14:11:23 -08:00
Ben Letham
57990e6f50 Change backend logging from info to debug 2020-02-11 03:38:18 -08:00
Christopher Suchanek
9cce1527e9
Make sure to cleanup previous models files (#1319) 2020-02-10 18:22:37 -08:00
Ben Letham
bb242ea180 R documentation updates 2020-02-09 19:31:44 -08:00
Ben Letham
9413c1141e version bump 2020-02-09 19:16:05 -08:00
Christopher Suchanek
1d18adc0ba
Replaced pystan with cmdstanpy (#1083)
* changes

* added actual tests for fit method

* precision

* syntax

* sampling not working

* sampling seems to work

* sampling not working again

* sampling works, tests to be removed

* replaced data with rmse

* replace pystan with cmdstanpy

* cleanup

* cleanup

* test for newton

* added support for multiple backends

* minor fixes

* fixed comment

* added support for --test-slow flag

* fixed import

* reverted style change

* specify backend based on env variable

* fixes

* PR fixes
2020-02-07 14:34:08 -08:00
Jack Dent
496facb152
Use np.percentile if array does not contain NaNs (#1311)
Co-authored-by: jackd-stripe <41304233+jackd-stripe@users.noreply.github.com>
2020-02-05 10:10:01 -08:00
Ben Letham
5f97759669 Add plotly components plot to quickstart notebook 2020-02-04 16:03:18 -08:00
Ben Letham
69bd5a2aac Avoid pandas deprecation warning 2020-02-04 16:00:37 -08:00
Ben Letham
30e68fd467 Fix deprecation warning from plotly 2020-02-04 15:55:12 -08:00
Ben Letham
71ca505732 Add test for cross validation with invalid metrics 2020-02-04 15:40:04 -08:00
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 Letham
aeaf0ad2e1 documentation fix 2020-02-03 13:12:54 -08:00
Tobi Sam
c490c88f0c
Modified saturating_forecasts.md (#1215)
Changed forecast period on line 60 from '3' years to '5' years. 5 years is actually what is being calculated in the example.
2020-02-03 13:10:59 -08:00
Rômulo Madureira Rodrigues
ffb0ea86e2
Correction for issue #1304\n\nChange use of weekday_name to day_name to add consistency with pandas 1.0. (#1308) 2020-02-03 12:40:20 -08:00
Ben Letham
d4c460e3dd Add dateutil requirement, get backwards compatability with holidays 0.9.5 2020-01-31 08:03:33 -08:00
Mert Sarikaya
6070b5a309
update holidays dependency according to the new structure (#1295)
* update holidays dependency according to the new structure

* fix backward compatibility problem

* by-pass version dependency for holidays package

Co-authored-by: Ben Letham <bletham@gmail.com>
2020-01-30 15:24:11 -08:00
Benjamin Ogorek
0a270b4a19
Minor modification in handling strings (#1301)
* Style modifications to fbprophet

* fixing cases where tests were broken

* minor style changes

* changed f-strings to named formatted strings due to Python2 build

* fixing syntax errors

* switching to formatted string quoting using {!r}

* Fixing ValueError Styling in my own branch

* fixing type and changing back one quoted string
2020-01-28 15:24:40 -08:00
Susan Chang
1f6170491d Regenerate documentation #1212 2020-01-28 15:16:32 -08:00
Shu
3ef1d66d93 Add hyperlinks for easier reference to Quick start #1212 2020-01-28 15:16:32 -08:00