Skip to content

Commit

Permalink
build based on bec6cd9
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Jan 21, 2024
1 parent 9c34926 commit 8e0de9d
Show file tree
Hide file tree
Showing 11 changed files with 241 additions and 241 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.0","generation_timestamp":"2024-01-21T11:06:02","documenter_version":"1.2.1"}}
{"documenter":{"julia_version":"1.10.0","generation_timestamp":"2024-01-21T12:04:52","documenter_version":"1.2.1"}}
2 changes: 1 addition & 1 deletion dev/bibliography/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dev/examples/sparse_linear_regression/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@

reg = ProximalOperators.NormL1(1)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">ProximalOperators.NormL1{Int64}(1)</code></pre><p>We want to minimize the sum of <code>training_loss</code> and <code>reg</code>, and for this task we can use <code>FastForwardBackward</code>, which implements the fast proximal gradient method (also known as fast forward-backward splitting, or FISTA). Therefore we construct the algorithm, then apply it to our problem by providing a starting point, and the objective terms <code>f=training_loss</code> (smooth) and <code>g=reg</code> (non smooth).</p><pre><code class="language-julia hljs">ffb = ProximalAlgorithms.FastForwardBackward()
solution, iterations = ffb(x0 = zeros(n_features + 1), f = training_loss, g = reg)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">([0.0, -9.84468723961304, 23.777300627851535, 12.957770377540996, -4.7470469711076575, 0.0, -11.013138882753212, 0.0, 24.351386511781616, 3.2906368579992815, 151.01169590643272], 285)</code></pre><p>We can now check how well the trained model performs on the test portion of our data.</p><pre><code class="language-julia hljs">test_output = standardized_linear_model(solution, test_input)
mean_squared_error(test_label, test_output)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">1369.3780923676934</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../guide/custom_algorithms/">« Custom algorithms</a><a class="docs-footer-nextpage" href="../../bibliography/">Bibliography »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Sunday 21 January 2024 11:06">Sunday 21 January 2024</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
mean_squared_error(test_label, test_output)</code></pre><pre class="documenter-example-output"><code class="nohighlight hljs ansi">1369.3780923676934</code></pre><hr/><p><em>This page was generated using <a href="https://github.com/fredrikekre/Literate.jl">Literate.jl</a>.</em></p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../guide/custom_algorithms/">« Custom algorithms</a><a class="docs-footer-nextpage" href="../../bibliography/">Bibliography »</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="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="auto">Automatic (OS)</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.2.1 on <span class="colophon-date" title="Sunday 21 January 2024 12:04">Sunday 21 January 2024</span>. Using Julia version 1.10.0.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/guide/custom_algorithms/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 8e0de9d

Please sign in to comment.