-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Uncertainty: Conformal Prediction V1.1 - support for multiple forecas…
…t steps (#1073) * Replaced yhat1 with the step_number for conformal. * Moved conformal_predict() method logic into conformal_prediction.py and added plot_interval_width_per_timestep() method for multiple timesteps. * Changed self.config_train.quantiles to quantiles in conformal_prediction.py. * Removed q_hats in _conformalize(). * Added Conformal dataclass from PR #1073. * Added conformal.py to replace conformal_prediction.py. * Fixed self.method in ValueError for conformal.py. * Modified Conformal class to fit multiple lines in forecaster.py. * Uncommented auto-regression section for test_plot_conformal_prediction and changed the split frequencies from to because of the Peyton Manning dataset. * Uncommented m.plot_latest_forecast in test_plot_conformal_prediction in test_plotting.py. * Added step_number in docstring in the _get_nonconformity_scores() method in conformal.py. * Uncommented the tests in test_model_performance.py. * Added plot_interval_width_per_timestep() to plot_forecast_plotly.py and modified plot() in conformal.py to enable this method for plotting_backend='plotly'. * Modified test_plot_conformal_prediction in test_plotting.py by adding plotting_backend param into m.conformal_predict() method.
- Loading branch information
1 parent
05d5e10
commit 3d46b1e
Showing
6 changed files
with
233 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.