Please note that the project is still in beta phase. Please report any issues you encounter or suggestions you have. We will do our best to address them quickly. Contributions are very welcome!
A Neural Network based Time-Series model, inspired by Facebook Prophet and AR-Net, built on PyTorch.
The documentation page may not we entirely up to date. Docstrings should be reliable, please refer to those when in doubt. We are working on an improved documentation. We appreciate any help to improve and update the docs.
For a visual introduction to NeuralProphet, view this presentation.
We compiled a Contributing to NeuralProphet page with practical instructions and further resources to help you become part of the family.
If you have any question or suggestion, you can participate with our community right here on Github
We also have an active Slack community. Come and join the conversation!
There are several example notebooks to help you get started.
You can find the datasets used in the tutorials, including data preprocessing examples, in our neuralprophet-data repository.
Please refer to our documentation page for more resources.
from neuralprophet import NeuralProphet
After importing the package, you can use NeuralProphet in your code:
m = NeuralProphet()
metrics = m.fit(df, freq="D")
forecast = m.predict(df)
You can visualize your results with the inbuilt plotting functions:
fig_forecast = m.plot(forecast)
fig_components = m.plot_components(forecast)
fig_model = m.plot_parameters()
If you want to forecast into the unknown future, extend the dataframe before predicting:
m = NeuralProphet().fit(df, freq="D")
forecast = m.predict(df_future)
fig_forecast = m.plot(forecast)
You can now install neuralprophet directly with pip:
pip install neuralprophet
If you plan to use the package in a Jupyter notebook, we recommended to install the ‘live’ version:
pip install neuralprophet[live]
This will allow you to enable plot_live_loss
in the fit
function to get a live plot of train (and validation) loss.
If you would like the most up to date version, you can instead install direclty from github:
git clone <copied link from github>
cd neural_prophet
pip install .
For details, please view the Development Timeline.
The next versions of NeuralProphet are expected to cover a set of new exciting features:
For a complete list of all past and near-future changes, please refer to the changelogs.
Please cite NeuralProphet in your publications if it helps your research:
@misc{oskar2021neuralprophet-github,
author = {Oskar Triebe and
Hansika Hewamalage and
Nikolay Laptev},
title = {NeuralProphet: a simple and interpretable forecasting library},
url = {https://github.com/ourownstory/neural_prophet},
year = {2021}
}
The project effort is led by Oskar Triebe (Stanford University), advised by Nikolay Laptev (Facebook, Inc) and Ram Rajagopal (Stanford University) and has been partially funded by Total S.A. The project has been developed in close collaboration with Hansika Hewamalage, who is advised by Christoph Bergmeir (Monash University). The project has evolved into a community project, supported by people like you.
If you are interested in joining the project, please feel free to reach out to me (Oskar) - you can find my email on the AR-Net Paper.