Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermebodin committed Aug 28, 2023
1 parent 55478f2 commit ca97fd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/sarima.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# Values are very close to 0.0 so we test with absolute tolerance
# It attains 1e-3 when we make 10M simulations, which is too much
# computation for a rather simple test.
test_scenarios_adequacy_with_forecast(forec, scenarios; atol=1e-1)
test_scenarios_adequacy_with_forecast(forec, scenarios; atol=2e-1)

missing_obs = [6, 16, 26, 36, 46, 56, 66, 72, 73, 74, 75, 76, 86, 96]
missing_dinternet = copy(dinternet)
Expand Down
5 changes: 5 additions & 0 deletions test/models/unobserved_components.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,9 @@
@test minimum(alpha[:, 1]) <= 296
@test maximum(alpha[:, 2]) >= 7.5
@test minimum(alpha[:, 2]) <= -7.5

# Testing that it does not break
rj_temp = CSV.File(StateSpaceModels.RJ_TEMPERATURE) |> DataFrame
model = UnobservedComponents(rj_temp.Values; trend = "smooth trend", cycle = "stochastic")
fit!(model)
end

0 comments on commit ca97fd5

Please sign in to comment.