Andreas Kaae
03/25/2024, 12:59 PMMLForecast
library and have arrived at implementing the usage of PredictionIntervals
- however, I am unsure about the n_windows
parameters which represents the number of cross-validation windows used to calibrate the intervals. Is there anywhere I can find a more elaborate explanation of this? Also I am trying to find the source code for this implemenation, any one who can point me towards this?José Morales
03/25/2024, 4:30 PMn_windows
refers to how many iterations of cross validation will be performed (more iterations will yield better estimates but will take more time) and each iteration produces one score for each serie and horizon. When predicting we compute quantiles from these scores and generate the intervals.
You can find the code to create the scores here and the interval creation hereAndreas Kaae
03/26/2024, 7:41 AMJosé Morales
03/26/2024, 3:44 PMn_windows=2,h=10
then it uses the last 20 samples from each serie (10 on the first window and 10 on the second).
It doesn't use probabilistic forecasting, the conformity scores are the absolute errors in each of the windows, so the procedure for each window is:
• train a model
• predict h
steps ahead
• compute the absolute errors with respect to the validation set
Then to build the intervals we take the point predictions (mean) and compute the quantiles from [mean - scores | mean + scores]Andreas Kaae
03/27/2024, 7:55 AM