Commit graph

224 commits

Author SHA1 Message Date
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
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
JayCarraway
560077c8a7
Add possibility of selecting province of country for creation of holiday (#1340)
dataframe
2020-03-03 16:24:48 -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
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
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
f640308395 Update holidays csv for R, and fix bad utf-8 parsing 2020-02-04 15:12:28 -08:00
Ben Letham
be25372090 improvements in docstrings and testing for disabling uncertainty 2020-02-04 13:22:08 -08:00
Ben Letham
6e51130f28 Use fit kwargs in cross validation (#1040) 2020-02-03 17:02:23 -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
Mert Sarikaya
5dd6bb09e7 remove repeated sentence in docstring 2020-01-27 14:09:29 -08:00
raajtilaksarma
8bca432810 update hdays.py 2020-01-27 13:32:33 -08:00
Raaj Tilak Sarma
0d4a639c4c update holi and diwali holidays till 2030
Updated holi and diwali holidays till the year 2030. Added a source(link) for Holi dates till 2030.
2020-01-27 13:32:33 -08:00
Ben Letham
af5bb2acda Minor fixes 2020-01-27 13:28:04 -08:00
baogorek
aee14547da fixing syntax errors 2020-01-27 13:25:56 -08:00
baogorek
d98afa0126 changed f-strings to named formatted strings due to Python2 build 2020-01-27 13:25:56 -08:00
baogorek
b1c6f5dd9b minor style changes 2020-01-27 13:25:56 -08:00
baogorek
0b6c2dc6af fixing cases where tests were broken 2020-01-27 13:25:56 -08:00
baogorek
3a6a338ac2 Style modifications to fbprophet 2020-01-27 13:25:56 -08:00
Ryan Nazareth
31c54d53be Modify assertion statement for ignoring ordering of columns to pass on travis 2019-11-06 15:25:09 -08:00
Ryan Nazareth
da05c039ee Add second check for uncertainty=False 2019-11-06 15:25:09 -08:00
Ryan Nazareth
3134c7ff5a Add test for cv in diagnostics 2019-11-06 15:25:09 -08:00
Ryan Nazareth
c9e3a83188 Add test for disabling uncertainty 2019-11-06 15:25:09 -08:00
Maxim Grishin
ca9a49d328 Add test for MCMC with 0 changepoints 2019-11-06 15:23:21 -08:00
Maxim Grishin
a6646670b9 Fix plotting with 0 changepoints 2019-11-06 15:23:21 -08:00
Maxim Grishin
9425b89257 Fix #1189 2019-11-06 15:23:21 -08:00
Marcos Alves de Almeida
5ad4e8a092 Update hdays.py 2019-11-06 15:20:02 -08:00
Maxim Grishin
a3ae4715bb Make Python version consistent with R 2019-10-22 17:28:27 -07:00
Maxim Grishin
05effe55ac Make StanFit4Model object accessible from Prophet 2019-10-22 17:28:27 -07:00
Florian Roessler
e1a2b9c297 updated the change a bit to prevent unnessary copy operations 2019-09-28 17:12:33 -07:00
Florian Roessler
5bc6565c11 Add test and fix for issue #891 2019-09-28 17:12:33 -07:00
Timothy Salmon
f4cb9fc4bb Unpack Solar to date 2019-08-09 17:45:02 -07:00
Timothy Salmon
c02bb3bc15 Replace lunardate lunar2solar calls with LunarCalendar 2019-08-09 17:45:02 -07:00
Alexander Gawrilow
c179a28be2 fix bug in performance metrics 2019-08-09 12:06:24 -07:00
Alexander Gawrilow
7f214f2bc7 adapt cross validation to a model with 0 uncertainty samples 2019-08-09 12:06:24 -07:00
Alexander Gawrilow
a6a1381a0a disable plotting uncertainties if m.uncertainty_samples is 0 or False 2019-08-09 12:06:24 -07:00
Alexander Gawrilow
0679e69dba implemented disabling calculation of uncertainties if uncertainty_samples is 0 2019-08-09 12:06:24 -07:00
Chanran Kim
aa26be5bab Update hdays.py 2019-07-11 15:34:31 -07:00