|
1 | 1 | @testset "Estimate" begin
|
2 |
| - @testset "Beta" begin |
| 2 | + @testset "Normal" begin |
3 | 3 | ω = [0.1, 0.1]
|
4 | 4 | A = [0.5 0; 0 0.5]
|
5 | 5 | B = [0.5 0; 0 0.5]
|
6 |
| - simulation = simulate_GAS_1_1(Beta, 0.0, ω, A, B, 1) |
| 6 | + simulation = simulate_GAS_1_1(Normal, 0.0, ω, A, B, 1) |
7 | 7 | @testset "Estimation by passing number of initial_points" begin
|
8 | 8 | # LBFGS
|
9 |
| - gas = Model(1, 1, Beta, 0.0) |
| 9 | + gas = Model(1, 1, Normal, 0.0) |
10 | 10 | fit!(gas, simulation; verbose = 2, opt_method = ScoreDrivenModels.LBFGS(gas, 3))
|
11 | 11 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
12 | 12 | # NelderMead
|
13 |
| - gas = Model(1, 1, Beta, 0.0) |
| 13 | + gas = Model(1, 1, Normal, 0.0) |
14 | 14 | fit!(gas, simulation; verbose = 2, opt_method = ScoreDrivenModels.NelderMead(gas, 3))
|
15 | 15 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
16 | 16 | # IPNewton
|
17 |
| - gas = Model(1, 1, Beta, 0.0) |
| 17 | + gas = Model(1, 1, Normal, 0.0) |
18 | 18 | fit!(gas, simulation; verbose = 2, opt_method = ScoreDrivenModels.IPNewton(gas, 3))
|
19 | 19 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
20 | 20 | end
|
21 | 21 | @testset "Estimation by passing initial_points" begin
|
22 | 22 | # LBFGS
|
23 |
| - gas = Model(1, 1, Beta, 0.0) |
| 23 | + gas = Model(1, 1, Normal, 0.0) |
24 | 24 | initial_points = [[0.1, 0.1, 0.5, 0.5, 0.5, 0.5]]
|
25 | 25 | fit!(gas, simulation; verbose = 1, opt_method = ScoreDrivenModels.LBFGS(gas, initial_points))
|
26 | 26 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
27 | 27 | # NelderMead
|
28 |
| - gas = Model(1, 1, Beta, 0.0) |
| 28 | + gas = Model(1, 1, Normal, 0.0) |
29 | 29 | initial_points = [[0.1, 0.1, 0.5, 0.5, 0.5, 0.5]]
|
30 | 30 | fit!(gas, simulation; verbose = 1, opt_method = ScoreDrivenModels.NelderMead(gas, initial_points))
|
31 | 31 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
32 | 32 | # IPNewton
|
33 |
| - gas = Model(1, 1, Beta, 0.0) |
| 33 | + gas = Model(1, 1, Normal, 0.0) |
34 | 34 | initial_points = [[0.1, 0.1, 0.5, 0.5, 0.5, 0.5]]
|
35 | 35 | fit!(gas, simulation; verbose = 1, opt_method = ScoreDrivenModels.IPNewton(gas, initial_points))
|
36 | 36 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
|
0 commit comments