Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix idx forecast #246

Merged
merged 6 commits into from
Mar 10, 2021
Merged

Fix idx forecast #246

merged 6 commits into from
Mar 10, 2021

Conversation

guilhermebodin
Copy link
Member

After performing some benchmarks I realized that the forecasting was starting 1 step delayed from the expected behavior. This fixes the problem

@codecov
Copy link

codecov bot commented Mar 10, 2021

Codecov Report

Merging #246 (7558859) into master (492c098) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #246   +/-   ##
=======================================
  Coverage   93.74%   93.75%           
=======================================
  Files          27       27           
  Lines        1982     1984    +2     
=======================================
+ Hits         1858     1860    +2     
  Misses        124      124           
Impacted Files Coverage Δ
src/forecast.jl 93.61% <ø> (ø)
src/systems.jl 91.02% <100.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 492c098...7558859. Read the comment docs.

]
@test predicted_mean ≈ vcat(forec.expected_value...) atol = 1e-3
# simualting
scenarios = simulate_scenarios(model, 10, 100_000)
@time scenarios = simulate_scenarios(model, 10, 30_000)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@time scenarios = simulate_scenarios(model, 10, 30_000)
scenarios = simulate_scenarios(model, 10, 30_000)

@guilhermebodin guilhermebodin merged commit e5f6a53 into master Mar 10, 2021
@guilhermebodin guilhermebodin deleted the fix-idx-forecast branch April 2, 2021 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants