|
7 | 7 | @testset "Estimation by passing number of seeds" begin
|
8 | 8 | # LBFGS
|
9 | 9 | gas = GAS(1, 1, Beta, 0.0)
|
10 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
| 10 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
11 | 11 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
12 | 12 | # NelderMead
|
13 | 13 | gas = GAS(1, 1, Beta, 0.0)
|
14 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.NelderMead(gas, 3)) |
| 14 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.NelderMead(gas, 3)) |
15 | 15 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
16 | 16 | # IPNewton
|
17 | 17 | gas = GAS(1, 1, Beta, 0.0)
|
18 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.IPNewton(gas, 3)) |
| 18 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.IPNewton(gas, 3)) |
19 | 19 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
20 | 20 | end
|
21 | 21 | @testset "Estimation by passing seeds" begin
|
22 | 22 | # LBFGS
|
23 | 23 | gas = GAS(1, 1, Beta, 0.0)
|
24 | 24 | seeds = [[0.1, 0.1, 0.5, 0.5, 0.5, 0.5]]
|
25 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, seeds)) |
| 25 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, seeds)) |
26 | 26 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
27 | 27 | # NelderMead
|
28 | 28 | gas = GAS(1, 1, Beta, 0.0)
|
29 | 29 | seeds = [[0.1, 0.1, 0.5, 0.5, 0.5, 0.5]]
|
30 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.NelderMead(gas, seeds)) |
| 30 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.NelderMead(gas, seeds)) |
31 | 31 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
32 | 32 | # IPNewton
|
33 | 33 | gas = GAS(1, 1, Beta, 0.0)
|
34 | 34 | seeds = [[0.1, 0.1, 0.5, 0.5, 0.5, 0.5]]
|
35 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.IPNewton(gas, seeds)) |
| 35 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.IPNewton(gas, seeds)) |
36 | 36 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
37 | 37 | end
|
38 | 38 | end
|
|
44 | 44 | B = [0.5 0; 0 0.5]
|
45 | 45 | simulation = simulate_GAS_1_1(LogNormal, 0.0, ω, A, B, 13)
|
46 | 46 | gas = GAS(1, 1, LogNormal, 0.0)
|
47 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
| 47 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
48 | 48 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
49 | 49 | end
|
50 | 50 | @testset "Scaling = 0.5" begin
|
|
53 | 53 | B = [0.5 0; 0 0.5]
|
54 | 54 | simulation = simulate_GAS_1_1(LogNormal, 0.5, ω, A, B, 13)
|
55 | 55 | gas = GAS(1, 1, LogNormal, 0.5)
|
56 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
| 56 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
57 | 57 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
58 | 58 | end
|
59 | 59 | @testset "Scaling = 1.0" begin
|
|
62 | 62 | B = [0.1 0; 0 0.1]
|
63 | 63 | simulation = simulate_GAS_1_1(LogNormal, 1.0, ω, A, B, 3)
|
64 | 64 | gas = GAS(1, 1, LogNormal, 1.0)
|
65 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
| 65 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
66 | 66 | test_coefficients_GAS_1_1(gas, ω, A, B)
|
67 | 67 | end
|
68 | 68 | @testset "GAS([1, 12], [1, 12])" begin
|
69 | 69 | simulation = simulate_GAS_1_12(LogNormal, 0.0, 123)
|
70 | 70 | gas = GAS([1, 12], [1, 12], LogNormal, 0.0)
|
71 |
| - estimate!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
| 71 | + fit!(gas, simulation; verbose = 1, opt_method = SDM.LBFGS(gas, 3)) |
72 | 72 | test_coefficients_GAS_1_12(gas)
|
73 | 73 | end
|
74 | 74 | end
|
|
0 commit comments