Skip to content

Commit

Permalink
build based on 28c0ffb
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Nov 28, 2024
1 parent 7ce2d00 commit 579eb8c
Show file tree
Hide file tree
Showing 20 changed files with 981 additions and 1,012 deletions.
2 changes: 1 addition & 1 deletion previews/PR34/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-28T22:46:11","documenter_version":"1.8.0"}}
{"documenter":{"julia_version":"1.10.7","generation_timestamp":"2024-11-28T22:51:06","documenter_version":"1.8.0"}}
8 changes: 4 additions & 4 deletions previews/PR34/api.html

Large diffs are not rendered by default.

275 changes: 0 additions & 275 deletions previews/PR34/examples/basic_example-153a49c4.svg

This file was deleted.

44 changes: 44 additions & 0 deletions previews/PR34/examples/basic_example-2471ac68.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 0 additions & 44 deletions previews/PR34/examples/basic_example-98507d8e.svg

This file was deleted.

278 changes: 278 additions & 0 deletions previews/PR34/examples/basic_example-9bad60e5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
292 changes: 0 additions & 292 deletions previews/PR34/examples/basic_example-beceea39.svg

This file was deleted.

263 changes: 263 additions & 0 deletions previews/PR34/examples/basic_example-f7b37ce0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions previews/PR34/examples/basic_example.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions previews/PR34/examples/change_expectations.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
p2 = plot(data.real_household_consumption, title = "consumption", titlefont = 10)
plot!(p2, data_back.real_household_consumption, titlefont = 10, label = "backward looking")

plot(p1, p2, layout = (2, 1), legend = true)</code></pre><img src="change_expectations-481fe7cd.svg" alt="Example block output"/><p>Plot all time series</p><pre><code class="language-julia hljs">p1 = plot(data.real_gdp, title = &quot;gdp&quot;, titlefont = 10)
plot(p1, p2, layout = (2, 1), legend = true)</code></pre><img src="change_expectations-f75c723b.svg" alt="Example block output"/><p>Plot all time series</p><pre><code class="language-julia hljs">p1 = plot(data.real_gdp, title = &quot;gdp&quot;, titlefont = 10)
plot!(p1, data_back.real_gdp, titlefont = 10)
p2 = plot(data.real_household_consumption, title = &quot;household cons.&quot;, titlefont = 10)
plot!(p2, data_back.real_household_consumption, titlefont = 10)
Expand All @@ -54,4 +54,4 @@
p9 = plot(data.nominal_gdp ./ data.real_gdp, title = &quot;gdp deflator&quot;, titlefont = 10)
plot!(p9, data_back.nominal_gdp ./ data_back.real_gdp, titlefont = 10)

plot(p1, p2, p3, p4, p5, p6, p7, p8, p9, layout = (3, 3), legend = false)</code></pre><img src="change_expectations-0db1d075.svg" alt="Example block output"/><p>Note that, importantly, once the function <code>estimate_next_value</code> has been changed, the model will use the new expectations in all the simulations, unless the function is changed again. To restore the original expectations you could close the Julia session.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="scenario_analysis_via_overload.html">« Shocked simulations (advanced)</a><a class="docs-footer-nextpage" href="multithreading_speedup.html">Multithreading within the model »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Thursday 28 November 2024 22:46">Thursday 28 November 2024</span>. Using Julia version 1.10.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
plot(p1, p2, p3, p4, p5, p6, p7, p8, p9, layout = (3, 3), legend = false)</code></pre><img src="change_expectations-c7f43eb3.svg" alt="Example block output"/><p>Note that, importantly, once the function <code>estimate_next_value</code> has been changed, the model will use the new expectations in all the simulations, unless the function is changed again. To restore the original expectations you could close the Julia session.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="scenario_analysis_via_overload.html">« Shocked simulations (advanced)</a><a class="docs-footer-nextpage" href="multithreading_speedup.html">Multithreading within the model »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Thursday 28 November 2024 22:51">Thursday 28 November 2024</span>. Using Julia version 1.10.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
17 changes: 6 additions & 11 deletions previews/PR34/examples/get_parameters_and_initial_conditions.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions previews/PR34/examples/multithreading_speedup.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
model = Bit.init_model(parameters, initial_conditions, T);</code></pre><p>The model is in scale 1:2000, so it has around 30,000 households</p><pre><code class="language-julia hljs">println(model.prop.H)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">29915</code></pre><p>Note that households are the sum of active and inactive households and the owners of firms and of the bank</p><pre><code class="language-julia hljs">println(length(model.w_act) + length(model.w_inact) + length(model.firms) + 1)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">29915</code></pre><p>Let&#39;s fist check how many threads we have available in this Julia session</p><pre><code class="language-julia hljs">println(Threads.nthreads())</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">2</code></pre><p>Let&#39;s now compare the performance of single threading and multi threading</p><pre><code class="language-julia hljs">@time data = Bit.run_one_sim!(model; multi_threading = false);

model = Bit.init_model(parameters, initial_conditions, T);
@time data = Bit.run_one_sim!(model; multi_threading = true);</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi"> 5.344457 seconds (3.74 M allocations: 6.344 GiB, 17.79% gc time, 0.19% compilation time: 72% of which was recompilation)
2.829767 seconds (3.69 M allocations: 6.245 GiB, 13.97% gc time)</code></pre><p>Is the speedup in line to what we would expect?</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="change_expectations.html">« Experimentations (advanced)</a><a class="docs-footer-nextpage" href="get_parameters_and_initial_conditions.html">Calibration »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Thursday 28 November 2024 22:46">Thursday 28 November 2024</span>. Using Julia version 1.10.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
@time data = Bit.run_one_sim!(model; multi_threading = true);</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi"> 5.266270 seconds (3.74 M allocations: 6.344 GiB, 17.16% gc time, 0.19% compilation time: 72% of which was recompilation)
2.794860 seconds (3.69 M allocations: 6.245 GiB, 13.67% gc time)</code></pre><p>Is the speedup in line to what we would expect?</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="change_expectations.html">« Experimentations (advanced)</a><a class="docs-footer-nextpage" href="get_parameters_and_initial_conditions.html">Calibration »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.8.0 on <span class="colophon-date" title="Thursday 28 November 2024 22:51">Thursday 28 November 2024</span>. Using Julia version 1.10.7.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit 579eb8c

Please sign in to comment.