NeuralProphet is a Neural Network based Time-Series model, inspired by Facebook Prophet and AR-Net, built on PyTorch. NeuralProphet bridges the gap between traditional time-series models and deep learning methods.
This example showcases how to train a NeuralProphet
model in a ZenML pipeline. The ZenML NeuralProphet
integration
includes a custom materializer that persists the trained NeuralProphet
model to and from the artifact store. Here, we
utilize this materializer to train a model to predict the electricity consumption of a hospital.
The data used in this example is available here and the pipeline is loosely based on this guide from the NeuralProphet documentation.
If you're really in a hurry and just want to see this example pipeline run without wanting to fiddle around with all the individual installation and configuration steps, just run the following:
zenml example run neural_prophet
In order to run this example, you need to install and initialize ZenML:
# install CLI
pip install zenml
# install ZenML integrations
zenml integration install neural_prophet
# pull example
zenml example pull neural_prophet
cd zenml_examples/neural_prophet
# Initialize ZenML repo
zenml init
Now we're ready. Execute:
python run.py
Alternatively, if you want to run based on the config.yaml you can run with:
zenml pipeline run pipelines/neural_prophet_pipeline/neural_prophet_pipeline.py -c config.yaml
After running the pipeline, you may inspect the accompanying notebook to visualize results:
jupyter notebook
In order to clean up, delete the remaining ZenML references.
rm -rf zenml_examples