README.md (prophet-0.7) | : | README.md (prophet-1.0) | ||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
- 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 | |||
```shell | ```shell | |||
pip install fbprophet | pip install prophet | |||
``` | ``` | |||
Note: Installation requires PyStan, which has its [own installation instruction s](http://pystan.readthedocs.io/en/latest/installation_beginner.html). | Note: Installation requires PyStan, which has its [own installation instruction 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). | 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/) | 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) | ## 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/fbprophet` and then `python -m unittest` | To run the tests, inside the container `cd python/prophet` and then `python -m u nittest` | |||
### Example usage | ### Example usage | |||
```python | ```python | |||
>>> from fbprophet 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. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |