Skip to content

Commit 445c0f1

Browse files
Avoid double printing in examples (#109)
* avoid double printing
1 parent 769f6f0 commit 445c0f1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/ane.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ initial_params = dynamic_initial_params(y_train, gas)
1818
# Fit specified model to historical data using initial parameters
1919
f = ScoreDrivenModels.fit!(gas, y_train; initial_params=initial_params)
2020

21-
# Get estimation statistics
22-
estimation_stats = fit_stats(f)
21+
# Print estimation statistics
22+
fit_stats(f)
2323

2424
# Simulate 1000 future scenarios and obtain the 5% and 95% quantiles in each time period
2525
forec = forecast(y_train, gas, 60; S=1000, initial_params=initial_params)

examples/cpichg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ gas = Model(1, 1, TDistLocationScale, 0.0, time_varying_params=[1, 2])
2626
# In this example, we set the optimization method to LBFGS with 5 initial points
2727
f = fit!(gas, y; opt_method=LBFGS(gas, 5))
2828

29-
# Get estimation statistics
30-
estimation_stats = fit_stats(f)
29+
# Print estimation statistics
30+
fit_stats(f)
3131

3232
# Perform forecast via simulations for 12 time periods ahead
3333
forec = forecast(y, gas, 12)

examples/garch.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ f = fit!(
4242
opt_method = IPNewton(gas, [initial_point]; ub=ub, lb=lb)
4343
)
4444

45-
# Get estimation statistics
46-
estimation_stats = fit_stats(f)
45+
# Print estimation statistics
46+
fit_stats(f)

0 commit comments

Comments
 (0)