prophet/python
Chanran Kim 5669f13abf
Drop Korea class from hdays.py (#1438)
To solve this [issue](https://github.com/facebook/prophet/issues/1437) by @chongdae

Korean lunar calendar which is different from Chinese lunar calendar is added python-holidays package recently.
This commit is about dropping the Korean and KR class in hdays.py file and hdays_part1(holidays) will work for Korean holidays.

```
import fbprophet.hdays as hdays_part2
import holidays as hdays_part1
``
2020-06-05 16:54:58 -07:00
..
fbprophet Drop Korea class from hdays.py (#1438) 2020-06-05 16:54:58 -07:00
scripts Fixing some holiday parsing for R csv file 2020-02-04 15:23:11 -08: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 Post1 release + remove pyproject.toml file 2019-01-08 11:00:54 -08:00
README.md Update README with instructions to install from Makefile 2019-05-31 11:23:49 -07:00
requirements.txt sampling iters arg name, logic changes (#1389) 2020-03-24 14:33:52 -07:00
setup.py Remove Python 2 from setup.py (#1485) 2020-05-14 12:16:34 -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)