README 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Prophet: Automatic Forecasting Procedure
  2. ========================================
  3. 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.
  4. Prophet is `open source software <https://code.facebook.com/projects/>`_ released by Facebook's `Core Data Science team <https://research.fb.com/category/data-science/>`_.
  5. Full documentation and examples available at the homepage: https://facebook.github.io/prophet/
  6. Important links
  7. ---------------
  8. - HTML documentation: https://facebook.github.io/prophet/docs/quick_start.html
  9. - Issue tracker: https://github.com/facebook/prophet/issues
  10. - Source code repository: https://github.com/facebook/prophet
  11. - Implementation of Prophet in R: https://cran.r-project.org/package=prophet
  12. Other forecasting packages
  13. --------------------------
  14. - Rob Hyndman's `forecast package <http://robjhyndman.com/software/forecast/>`_
  15. - `Statsmodels <http://statsmodels.sourceforge.net/>`_
  16. Installation
  17. ------------
  18. ::
  19. $ pip install fbprophet
  20. Note: Installation requires PyStan, which has its `own installation instructions <http://pystan.readthedocs.io/en/latest/installation_beginner.html>`_. On Windows, PyStan requires a compiler so you'll need to `follow the instructions<http://pystan.readthedocs.io/en/latest/windows.html>`_. The key step is installing a recent `C++ compiler <http://landinghub.visualstudio.com/visual-cpp-build-tools>`_.
  21. Example usage
  22. -------------
  23. ::
  24. >>> from fbprophet import Prophet
  25. >>> m = Prophet()
  26. >>> m.fit(df) # df is a pandas.DataFrame with 'y' and 'ds' columns
  27. >>> future = m.make_future_dataframe(periods=365)
  28. >>> m.predict(future)