prophet/python
fbonaita 3a17402585
Tqdm flag (#1706)
* add disable_tqdm flag to diagnostics.py

* add comment to cross_validation()

* Replace boolean comparison operator

Co-authored-by: Marius Theiss <justusbersten@gmail.com>

* Fix indentation

* Restore original indentation

Co-authored-by: Filippo Bonaita <filippo.bonaita@corp.badoo.com>
Co-authored-by: Marius Theiss <justusbersten@gmail.com>
2020-11-06 21:02:54 -08:00
..
fbprophet Tqdm flag (#1706) 2020-11-06 21:02:54 -08:00
scripts Clean up script for R holidays, and regenerate 2020-08-27 18:36:18 -07:00
stan add implementation for constant trend in Python (#1466) 2020-05-14 21:40:40 -07:00
LICENSE Change to MIT license 2019-05-21 11:40:04 -07:00
MANIFEST.in Add new test file to manifest 2020-08-19 19:50:33 -07:00
README.md Update README with instructions to install from Makefile 2019-05-31 11:23:49 -07:00
requirements.txt Update holidays version requirement, for TR 2020-09-03 17:09:24 -07:00
setup.py Fix issue with holidays in some years 2020-09-03 16:47:22 -07:00

Prophet: Automatic Forecasting Procedure

Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well.

Prophet is open source software released by Facebook's Core Data Science team .

Full documentation and examples available at the homepage: https://facebook.github.io/prophet/

Other forecasting packages

Installation

pip install fbprophet

Note: Installation requires PyStan, which has its own installation instructions. On Windows, PyStan requires a compiler so you'll need to follow the instructions. The key step is installing a recent C++ compiler

Installation using Docker and docker-compose (via Makefile)

Simply type make build and if everything is fine you should be able to make shell or alternative jump directly to make py-shell.

To run the tests, inside the container cd python/fbprophet and then python -m unittest

Example usage

  >>> from fbprophet import Prophet
  >>> m = Prophet()
  >>> m.fit(df)  # df is a pandas.DataFrame with 'y' and 'ds' columns
  >>> future = m.make_future_dataframe(periods=365)
  >>> m.predict(future)