README.md (prophet-1.0) | : | README.md (prophet-1.1) | ||
---|---|---|---|---|
skipping to change at line 21 | skipping to change at line 21 | |||
- HTML documentation: https://facebook.github.io/prophet/docs/quick_start.html | - HTML documentation: https://facebook.github.io/prophet/docs/quick_start.html | |||
- Issue tracker: https://github.com/facebook/prophet/issues | - Issue tracker: https://github.com/facebook/prophet/issues | |||
- Source code repository: https://github.com/facebook/prophet | - Source code repository: https://github.com/facebook/prophet | |||
- Implementation of Prophet in R: https://cran.r-project.org/package=prophet | - Implementation of Prophet in R: https://cran.r-project.org/package=prophet | |||
## Other forecasting packages | ## Other forecasting packages | |||
- Rob Hyndman's [forecast package](http://robjhyndman.com/software/forecast/) | - Rob Hyndman's [forecast package](http://robjhyndman.com/software/forecast/) | |||
- [Statsmodels](http://statsmodels.sourceforge.net/) | - [Statsmodels](http://statsmodels.sourceforge.net/) | |||
## Installation | ## Installation - PyPI release | |||
```shell | See [Installation in Python - PyPI release](https://github.com/facebook/prophet# | |||
pip install prophet | installation-in-python---pypi-release) | |||
``` | ||||
Note: Installation requires PyStan, which has its [own installation instruction | ## Installation - Development version | |||
s](http://pystan.readthedocs.io/en/latest/installation_beginner.html). | ||||
On Windows, PyStan requires a compiler so you'll need to [follow the instruction | ||||
s](http://pystan.readthedocs.io/en/latest/windows.html). | ||||
The key step is installing a recent [C++ compiler](https://visualstudio.microso | ||||
ft.com/visual-cpp-build-tools/) | ||||
## Installation using Docker and docker-compose (via Makefile) | See [Installation in Python - Development version](https://github.com/facebook/p | |||
rophet#installation-in-python---development-version) | ||||
### Installation using Docker and docker-compose (via Makefile) | ||||
Simply type `make build` and if everything is fine you should be able to `make s hell` or alternative jump directly to `make py-shell`. | Simply type `make build` and if everything is fine you should be able to `make s hell` or alternative jump directly to `make py-shell`. | |||
To run the tests, inside the container `cd python/prophet` and then `python -m u nittest` | To run the tests, inside the container `cd python/prophet` and then `python -m u nittest` | |||
### Example usage | ### Example usage | |||
```python | ```python | |||
>>> from prophet import Prophet | >>> from prophet import Prophet | |||
>>> m = Prophet() | >>> m = Prophet() | |||
>>> m.fit(df) # df is a pandas.DataFrame with 'y' and 'ds' columns | >>> m.fit(df) # df is a pandas.DataFrame with 'y' and 'ds' columns | |||
>>> future = m.make_future_dataframe(periods=365) | >>> future = m.make_future_dataframe(periods=365) | |||
>>> m.predict(future) | >>> m.predict(future) | |||
``` | ``` | |||
End of changes. 4 change blocks. | ||||
11 lines changed or deleted | 9 lines changed or added |