@@ -3,6 +3,7 @@ using Dates, DelimitedFiles, Plots, Random, ScoreDrivenModels
3
3
# Define dates and load historical Affluent Natural Energy data
4
4
dates = collect (Date (1961 ): Month (1 ): Date (2000 , 12 ))
5
5
y = vec (readdlm (" ../test/data/nie_northeastern.csv" ))
6
+
6
7
y_train = y[1 : 400 ]
7
8
y_test = y[401 : 460 ]
8
9
@@ -26,9 +27,6 @@ plot(f)
26
27
forec = forecast (y_train, gas, 60 ; S= 1000 , initial_params= initial_params)
27
28
28
29
# 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 )
32
32
plot! (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