Commit graph

213 commits

Author SHA1 Message Date
Louis Potok
4225bb5fc1 Add mdape to all diagnostics, and fix rolling median behavior. 2019-06-21 15:28:29 -07:00
Louis Potok
1b01ab9f76 add function and test for rolling median 2019-06-21 15:28:29 -07:00
Jose Angel Sanchez Castillejos
ebb304680d Remove ipython from requirements since it would break test for python 2 2019-05-31 11:23:49 -07:00
Jose Angel Sanchez Castillejos
7b34ea13f2 Update README with instructions to install from Makefile 2019-05-31 11:23:49 -07:00
Jose Angel Sanchez Castillejos
2102a5421d Remove test command in make file since test are run from insede container 2019-05-31 11:23:49 -07:00
Daniel Scally
0e0f1a607a Adding validation to Prophet.add_seasonality to prevent user setting fourier_order <= 0 2019-05-31 10:21:09 -07:00
Alessandro Romano
b77f85ffd8 Add figsize parameter to plot methods 2019-05-23 10:29:50 -07:00
Ben Letham
7ff33137eb Change to MIT license 2019-05-21 11:40:04 -07:00
Ben Letham
a087eaec84 Fix FutureWarning in plotting by deregistering matplotlib converters (the future behavior). Also fix bad date formatting in non-daily plot that started came with change in matplotlib default in 3.0.2 2019-05-14 15:26:55 -07:00
Ben Letham
73c8faf15a py version bump 2019-05-14 09:11:21 -07:00
Sean J. Taylor
6a64410646 Merge branch 'master' of github.com:facebook/prophet 2019-05-13 23:00:24 -07:00
Sean J. Taylor
39e356ddbe Readying for 0.5 release 2019-05-13 23:00:12 -07:00
Ben Letham
0203a465f7 Allow pystan 2.19 2019-05-13 17:09:41 -07:00
Ben Letham
526468b6e8 Fix FutureWarning in test, for sorting because non-concatenation axis is not aligned 2019-05-13 15:28:58 -07:00
Ben Letham
fdac46ad40 Fix DeprecationWarning for float64 casting 2019-05-13 15:21:54 -07:00
Ben Letham
f660264e23 Don't allow timezones in pandas datetime 2019-05-13 15:00:45 -07:00
Ben Letham
df6bef8920 Replace to_numpy() with values to maintain pd 0.23.4 support 2019-05-13 13:51:27 -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
26f60c0a49 If ds column is int, convert to str before pd.to_datetime to avoid nanosecond casting (#675) 2019-05-06 16:38:13 -07:00
Ben Letham
4e5e223e4f Add plotly plot to quickstart example 2019-05-06 16:15:23 -07:00
Olof Höjvall
ee14933b3f Changed returned object of plot_plotly, addressing #937 (#954) 2019-05-06 13:55:25 -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
7297d98764 Use OrderedDict for seasonalities (#643) 2019-05-03 10:44:23 -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
Jerry Prawiharjo
c11e668c0d Add logger.warning when falling back to Newton method (#950)
This adds logger.warning when we fall back to Newton method.
2019-05-02 14:34:24 -07:00
Ray Bell
f9adb9623e WIP: remove python Series.nonzero warning (#931)
* add to_numpy()

* remove .values
2019-05-02 11:51:35 -07:00
andrealouw
0f863bf94b Update requirements.txt (#917)
pandas>=0.23.4 is required to not encounter the following error when passing a holidays argument, since earlier in earlier version pandas the concat does not have a sort argument.

File "/usr/local/lib/python3.6/dist-packages/fbprophet/forecaster.py", line 454, in construct_holiday_dataframe
all_holidays = pd.concat((all_holidays, holidays_to_add), sort=False)
TypeError: concat() got an unexpected keyword argument 'sort'
2019-04-17 17:13:42 -07:00
Ben Letham
8456cad5c0 set to pystan 2.18.1 for travis 2019-04-17 17:02:53 -07:00
Olof Höjvall
c756d20100 Added a interactive Plotly plot of the forecast (#915) 2019-04-17 16:47:16 -07:00
Olof Höjvall
8eea5a1ca3 Feature Proposal with Python Draft: Masked seasonality (#873)
* Added feature to mask seasonality

* Added conditional seasonality tests and fixed plotting it

* Fixed diagnostics for conditional seasonality and cleaned up code
2019-03-18 10:04:35 -07:00
MT
eec2f46ac5 if optimization fails fallback to Newton even if algorithm is specified (#890) 2019-03-18 09:41:45 -07:00
Ben Letham
730e59e2f7 Documentation fixes from PR #777 2019-02-20 17:17:47 -08:00
Gabriel Linder
bd0979244d Fix FutureWarning from Pandas 0.24.0. (#830)
* Fix FutureWarning from Pandas 0.24.0.

Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com>

* Stay compatible with older versions of pandas.

Signed-off-by: Gabriel Linder <linder.gabriel@gmail.com>
2019-02-15 10:28:51 -08:00
Sean J. Taylor
ef670eaf6c Bump version number for new release 2019-01-15 17:24:43 -08:00
Ben Letham
de5b7494de Remove pd.Series from np.matmul 2019-01-15 12:47:54 -08:00
Sean J. Taylor
34af9efb89 Post1 release + remove pyproject.toml file 2019-01-08 11:00:54 -08:00
Gordon Inggs
aebe8da78d Rather using Monday const from built-in calendar.py (#791)
Latest version of holidays (0.9.9) changed the name of its MONDAY const
to MON. Rather using the MONDAY const from the same library as the
object that it is being used with.
2019-01-07 16:22:31 -08:00
Ben Letham
6886371961 Add pyproject.toml back 2018-12-20 20:30:43 -08:00
Ben Letham
3e31d5d1c7 Fix absolute paths in setup.py 2018-12-20 18:15:07 -08:00
Ben Letham
1f24d059c9 Setup update 2018-12-20 16:11:53 -08:00
Ben Letham
9557e57b71 Build fix 2018-12-20 15:46:55 -08:00
Ben Letham
9676019825 Update manifest and include package data 2018-12-20 15:36:02 -08:00
Mpho Mphego
f16e22731f Update and rename README to README.md and Unicode strings (#766)
* Update and rename README to README.md and Unicode strings

Updated Readme file and converted from rst to markdown.
String contains ascii characters (converted to unicode string)

Signed-off-by: Mpho Mphego mpho112@gmail.com

* Deprecated import `from __future__ import unicode_literals` removed and ran isort module
https://mail.python.org/pipermail/python-dev/2016-December/147009.html

Included setuptool-git in the requirement.txt and updated `setup.py`
Reasons for this are highlighted here -> https://github.com/msabramo/setuptools-git#usage
2018-12-20 15:33:23 -08:00
Sean J. Taylor
637cd74d94 Deleting PEP 518 project file 2018-12-18 22:09:51 -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