prophet/python
Aliaksandr Barouski efca9301ce
Fixing potential security issue (#2108)
An attacker could access random URL from the executing server if model is crafted. It happens
because pd.read_json checks if the parameter is string contains URL and loads it in the case. The
fix enforcing using parameter as a JSON.

Co-authored-by: Alex Barouski <barouski@fb.com>
2022-01-31 14:18:56 -05:00
..
prophet Fixing potential security issue (#2108) 2022-01-31 14:18:56 -05:00
scripts Speed up make_holiday_features by up to 35% (#1962) 2021-08-28 12:19:40 +10: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 Pakage rename (#1844) 2021-03-21 14:13:50 -07:00
pyproject.toml (Stage 1) Python Wheels for PyPi (#2010) 2021-10-03 12:03:03 +11:00
README.md Pakage rename (#1844) 2021-03-21 14:13:50 -07:00
requirements.txt (Stage 1) Python Wheels for PyPi (#2010) 2021-10-03 12:03:03 +11:00
setup.py Add Windows wheel (#2089) 2021-12-25 23:20:24 +11: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 prophet

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/prophet and then python -m unittest

Example usage

  >>> from prophet 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)