From 1331fab795e5c52c958807777a32d481e1da6d56 Mon Sep 17 00:00:00 2001 From: Morten Hjorth-Jensen Date: Tue, 4 Oct 2022 22:15:33 +0200 Subject: [PATCH] udpate --- doc/pub/week39/html/week39-bs.html | 6 +- doc/pub/week39/html/week39-reveal.html | 24 + doc/pub/week39/html/week39-solarized.html | 26 +- doc/pub/week39/html/week39.html | 26 +- doc/pub/week39/ipynb/ipynb-week39-src.tar.gz | Bin 192 -> 192 bytes doc/pub/week39/ipynb/week39.ipynb | 593 ++++++++++--------- doc/src/week39/week39.do.txt | 53 +- 7 files changed, 409 insertions(+), 319 deletions(-) diff --git a/doc/pub/week39/html/week39-bs.html b/doc/pub/week39/html/week39-bs.html index 63c281832..2c358574c 100644 --- a/doc/pub/week39/html/week39-bs.html +++ b/doc/pub/week39/html/week39-bs.html @@ -267,7 +267,8 @@ doconce format html week39.do.txt --html_style=bootstrap --pygments_html_style=d 2, None, 'introducing-jax-https-jax-readthedocs-io-en-latest'), - ('Weekend challenge', 2, None, 'weekend-challenge')]} + ('Weekend challenge', 2, None, 'weekend-challenge'), + ('algorithms', 2, None, 'algorithms')]} end of tocinfo --> @@ -389,6 +390,7 @@ MathJax.Hub.Config({
  • And Logistic Regression
  • Introducing "JAX":"https://jax.readthedocs.io/en/latest/"
  • Weekend challenge
  • +
  • algorithms
  • @@ -443,7 +445,7 @@ MathJax.Hub.Config({
  • 9
  • 10
  • ...
  • -
  • 88
  • +
  • 89
  • »
  • diff --git a/doc/pub/week39/html/week39-reveal.html b/doc/pub/week39/html/week39-reveal.html index 24943ab03..5eaf31872 100644 --- a/doc/pub/week39/html/week39-reveal.html +++ b/doc/pub/week39/html/week39-reveal.html @@ -3781,6 +3781,30 @@ derivative_fn = grad(sum_logistic) +
    +

    algorithms

    + +

    \begin{algorithm} +\caption{An algorithm with caption} +\KwData{\( n \geq 0 \)} +\KwResult{\( y = x^n \)} +$y \gets 1$\; +$X \gets x$\; +$N \gets n$\; +\While{\( N \neq 0 \)}{ + \eIf{\( N \) is even}{ + $X \gets X \times X$\; + \( N \gets \frac{N}{2} \) \Comment*[r]{This is a comment} + }{\If{\( N \) is odd}{ + $y \gets y \times X$\; + $N \gets N - 1$\; + } + } +} +\end{algorithm} +

    +
    + diff --git a/doc/pub/week39/html/week39-solarized.html b/doc/pub/week39/html/week39-solarized.html index 29b59d761..3ff32528d 100644 --- a/doc/pub/week39/html/week39-solarized.html +++ b/doc/pub/week39/html/week39-solarized.html @@ -294,7 +294,8 @@ div.toc p,a { 2, None, 'introducing-jax-https-jax-readthedocs-io-en-latest'), - ('Weekend challenge', 2, None, 'weekend-challenge')]} + ('Weekend challenge', 2, None, 'weekend-challenge'), + ('algorithms', 2, None, 'algorithms')]} end of tocinfo --> @@ -3712,6 +3713,29 @@ derivative_fn = grad(sum_logistic)
  • Add a more complicated function and study the rate of convergence for the derivatives as function of the different methods
  • Extend from linear regression to logistic regression.
  • +









    +

    algorithms

    + +

    \begin{algorithm} +\caption{An algorithm with caption} +\KwData{\( n \geq 0 \)} +\KwResult{\( y = x^n \)} +$y \gets 1$\; +$X \gets x$\; +$N \gets n$\; +\While{\( N \neq 0 \)}{ + \eIf{\( N \) is even}{ + $X \gets X \times X$\; + \( N \gets \frac{N}{2} \) \Comment*[r]{This is a comment} + }{\If{\( N \) is odd}{ + $y \gets y \times X$\; + $N \gets N - 1$\; + } + } +} +\end{algorithm} +

    +
    © 1999-2022, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license diff --git a/doc/pub/week39/html/week39.html b/doc/pub/week39/html/week39.html index 14b139823..a3c5eb61e 100644 --- a/doc/pub/week39/html/week39.html +++ b/doc/pub/week39/html/week39.html @@ -371,7 +371,8 @@ div.toc p,a { 2, None, 'introducing-jax-https-jax-readthedocs-io-en-latest'), - ('Weekend challenge', 2, None, 'weekend-challenge')]} + ('Weekend challenge', 2, None, 'weekend-challenge'), + ('algorithms', 2, None, 'algorithms')]} end of tocinfo --> @@ -3789,6 +3790,29 @@ derivative_fn = grad(sum_logistic)
  • Add a more complicated function and study the rate of convergence for the derivatives as function of the different methods
  • Extend from linear regression to logistic regression.
  • +









    +

    algorithms

    + +

    \begin{algorithm} +\caption{An algorithm with caption} +\KwData{\( n \geq 0 \)} +\KwResult{\( y = x^n \)} +$y \gets 1$\; +$X \gets x$\; +$N \gets n$\; +\While{\( N \neq 0 \)}{ + \eIf{\( N \) is even}{ + $X \gets X \times X$\; + \( N \gets \frac{N}{2} \) \Comment*[r]{This is a comment} + }{\If{\( N \) is odd}{ + $y \gets y \times X$\; + $N \gets N - 1$\; + } + } +} +\end{algorithm} +

    +
    © 1999-2022, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license diff --git a/doc/pub/week39/ipynb/ipynb-week39-src.tar.gz b/doc/pub/week39/ipynb/ipynb-week39-src.tar.gz index ca1ac9bc39befee332d73058377a5b0aff58d58b..ae275ac59c133e93227d8422347866b42f118bc0 100644 GIT binary patch literal 192 zcmV;x06+g9iwFQ$lssbq1MSaC3c@fD2H>uHia9|^(ibiTyKo_hc!88oZLCddlA^u6 zeSoeMH${Yeo1bBZVdjvnH@hsbck3;N5Rya@jF~3!l!VRogwhyj6w;JZMp+7khB0Fv zkmXK#>5S!iIHjr1C=JSYbHi9!e%Ld=0?+&t$4VI3?t5D)2~t_im8#)}Scj`Xw7txs uP-w;$XuNhpBXHRRFA8CWlKkSgTAeg+OyK|e8OL!P=W7pyFD5 literal 192 zcmV;x06+g9iwFRcR6Jt<1MSbv3W7io2XN0m#XN!Rs;hJi^3WlO=ml0Bb2E2sccpy$ z{D3+YT_l42UH%L+3^Rvpz1d}fy<2ZFgpeeTVazmPQ<8A5CzLXvaYR$X!T}H(v5