The scripts included below show the various options available for utilizing the GroupedProphet
API. For an alternative view of these examples with data visualizations, see the notebooks here <tutorials-and-examples>
Scripts
This script shows a simple example of training a series of Prophet models, saving a GroupedProphet
instance, loading that instance, cross validating through backtesting, and generating a forecast for each group.
/../examples/grouped_prophet/grouped_prophet_example.py
This script shows a simple example of training a series of Prophet models and generating a group subset prediction.
/../examples/grouped_prophet/grouped_prophet_subset_prediction_example.py
Note
To run these examples for yourself with the data generator example, utilize the following code:
/../diviner/utils/example_utils/example_data_generator.py