Skip to content

Commit

Permalink
fix ω param name
Browse files Browse the repository at this point in the history
  • Loading branch information
andre_ramos committed Dec 5, 2024
1 parent 800a1d5 commit 0eedc00
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ ss_model = BasicStructural(log_air_passengers, 12)
set_initial_hyperparameters!(ss_model, Dict("sigma2_ε" => residuals_variances["ε"],
"sigma2_ξ" =>residuals_variances["ξ"],
"sigma2_ζ" =>residuals_variances["ζ"],
"sigma2_ω" =>residuals_variances["ω"]))
"sigma2_ω" =>residuals_variances["ω_12"]))
StateSpaceModels.fit!(ss_model)
```

Expand Down
2 changes: 1 addition & 1 deletion paper_tests/m4_test/evaluate_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function evaluate_SSL(
DataFrame(
[
[model.output.residuals_variances["ξ"]],
[model.output.residuals_variances["ω"]],
[model.output.residuals_variances["ω_12"]],
[model.output.residuals_variances["ε"]],
[model.output.residuals_variances["ζ"]],
],
Expand Down
2 changes: 1 addition & 1 deletion paper_tests/m4_test/m4_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def evaluate_ss(input, sample_size, init, hyperparameters_inicialization):
results = []
results_init = []
for i in range(0, 48000):
hyperparameters_inicialization = [ssl_init_df.loc[i]["ϵ"], ssl_init_df.loc[i]["ξ"],ssl_init_df.loc[i]["ζ"],ssl_init_df.loc[i]["ω"]]
hyperparameters_inicialization = [ssl_init_df.loc[i]["ϵ"], ssl_init_df.loc[i]["ξ"],ssl_init_df.loc[i]["ζ"],ssl_init_df.loc[i]["ω_12"]]
results.append(evaluate_ss(dict_vec[i], 2794, False, hyperparameters_inicialization))
results_init.append(evaluate_ss(dict_vec[i], 2794, True, hyperparameters_inicialization))

Expand Down
2 changes: 1 addition & 1 deletion test/models/structural_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ end
models = [Basic_Structural, Local_Level, Local_Linear_Trend1, Local_Linear_Trend2]

empty_keys_vec = [
[], ["ν1", "ζ", "γ₁", "ω"], ["γ₁", "ω", "o"], ["γ₁", "ω", "o", "Exogenous_X"]
[], ["ν1", "ζ", "γ₁", "ω_2"], ["γ₁", "ω_2", "o"], ["γ₁", "ω_2", "o", "Exogenous_X"]
]

exogs = [Exogenous_X1, Exogenous_X1, Exogenous_X1, Exogenous_X2]
Expand Down

0 comments on commit 0eedc00

Please sign in to comment.