@@ -3,6 +3,7 @@ using Dates, DelimitedFiles, Plots, Random, ScoreDrivenModels
33# Define dates and load historical Affluent Natural Energy data
44dates = collect (Date (1961 ): Month (1 ): Date (2000 , 12 ))
55y = vec (readdlm (" ../test/data/nie_northeastern.csv" ))
6+
67y_train = y[1 : 400 ]
78y_test = y[401 : 460 ]
89
@@ -26,9 +27,6 @@ plot(f)
2627forec = forecast (y_train, gas, 60 ; S= 1000 , initial_params= initial_params)
2728
2829# Plot results
29- plotly ()
30- plot (dates[401 : 460 ], forec. observation_scenarios, color= " grey" , w= 0.05 , label= " " , ylims= (0 , 70 ));
31- plot! (dates[360 : 460 ], y[360 : 460 ], label= " NIE" , color= " black" , xlabel= " Months" , ylabel= " GWmed" , legend= :topright );
30+ plot (dates[401 : 460 ], forec. observation_scenarios, color= " grey" , w= 0.05 , label= " " , ylims= (0 , 70 ))
31+ plot! (dates[360 : 460 ], y[360 : 460 ], label= " NIE" , color= " black" , xlabel= " Months" , ylabel= " GWmed" , legend= :topright )
3232plot! (dates[401 : 460 ], forec. observation_quantiles, label= [" Quantiles" " " " " ], color= " red" , line= :dash )
33-
34- plot (dates[1 : 400 ], y_train, label = " in-sample NIE" , ylabel = " GWmed" , xlabel = " Months" , color = " black" )
0 commit comments