You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,7 @@ Current features include:
56
56
Quick example of fit and forecast for the air passengers time-series.
57
57
58
58
```julia
59
+
using StateSpaceLearning
59
60
using CSV
60
61
using DataFrames
61
62
using Plots
@@ -69,20 +70,15 @@ fit!(model)
69
70
prediction_log = StateSpaceLearning.forecast(model, steps_ahead) # arguments are the output of the fitted model and number of steps ahead the user wants to forecast
70
71
prediction =exp.(prediction_log)
71
72
72
-
plot(airp.passengers, w=2 , color ="Black", lab ="Historical", legend =:outerbottom)
73
-
plot!(vcat(ones(length(log_air_passengers)).*NaN, prediction), lab ="Forecast", w=2, color ="blue")
simulation = StateSpaceLearning.simulate(model, steps_ahead, N_scenarios) # arguments are the output of the fitted model, number of steps ahead the user wants to forecast and number of scenario paths
80
80
81
-
plot(airp.passengers, w=2 , color ="Black", lab ="Historical", legend =:outerbottom)
82
-
for s in1:N_scenarios-1
83
-
plot!(vcat(ones(length(log_air_passengers)).*NaN, exp.(simulation[:, s])), lab ="", α =0.1 , color ="red")
0 commit comments