update
This commit is contained in:
@@ -267,8 +267,7 @@ 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'),
|
||||
('algorithms', 2, None, 'algorithms')]}
|
||||
('Weekend challenge', 2, None, 'weekend-challenge')]}
|
||||
end of tocinfo -->
|
||||
|
||||
<body>
|
||||
@@ -390,7 +389,6 @@ MathJax.Hub.Config({
|
||||
<!-- navigation toc: --> <li><a href="._week39-bs085.html#and-logistic-regression" style="font-size: 80%;">And Logistic Regression</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week39-bs086.html#introducing-jax-https-jax-readthedocs-io-en-latest" style="font-size: 80%;">Introducing "JAX":"https://jax.readthedocs.io/en/latest/"</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week39-bs087.html#weekend-challenge" style="font-size: 80%;">Weekend challenge</a></li>
|
||||
<!-- navigation toc: --> <li><a href="._week39-bs088.html#algorithms" style="font-size: 80%;">algorithms</a></li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
@@ -445,7 +443,7 @@ MathJax.Hub.Config({
|
||||
<li><a href="._week39-bs008.html">9</a></li>
|
||||
<li><a href="._week39-bs009.html">10</a></li>
|
||||
<li><a href="">...</a></li>
|
||||
<li><a href="._week39-bs088.html">89</a></li>
|
||||
<li><a href="._week39-bs087.html">88</a></li>
|
||||
<li><a href="._week39-bs001.html">»</a></li>
|
||||
</ul>
|
||||
<!-- ------------------- end of main content --------------- -->
|
||||
|
||||
@@ -3781,30 +3781,6 @@ derivative_fn = grad(sum_logistic)
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2 id="algorithms">algorithms </h2>
|
||||
|
||||
<p>\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}
|
||||
</p>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
</div> <!-- class="slides" -->
|
||||
|
||||
@@ -294,8 +294,7 @@ div.toc p,a {
|
||||
2,
|
||||
None,
|
||||
'introducing-jax-https-jax-readthedocs-io-en-latest'),
|
||||
('Weekend challenge', 2, None, 'weekend-challenge'),
|
||||
('algorithms', 2, None, 'algorithms')]}
|
||||
('Weekend challenge', 2, None, 'weekend-challenge')]}
|
||||
end of tocinfo -->
|
||||
|
||||
<body>
|
||||
@@ -3713,29 +3712,6 @@ derivative_fn = grad(sum_logistic)
|
||||
<li> Add a more complicated function and study the rate of convergence for the derivatives as function of the different methods</li>
|
||||
<li> Extend from linear regression to logistic regression.</li>
|
||||
</ul>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
<h2 id="algorithms">algorithms </h2>
|
||||
|
||||
<p>\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}
|
||||
</p>
|
||||
|
||||
<!-- ------------------- end of main content --------------- -->
|
||||
<center style="font-size:80%">
|
||||
<!-- copyright --> © 1999-2022, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
|
||||
|
||||
@@ -371,8 +371,7 @@ div.toc p,a {
|
||||
2,
|
||||
None,
|
||||
'introducing-jax-https-jax-readthedocs-io-en-latest'),
|
||||
('Weekend challenge', 2, None, 'weekend-challenge'),
|
||||
('algorithms', 2, None, 'algorithms')]}
|
||||
('Weekend challenge', 2, None, 'weekend-challenge')]}
|
||||
end of tocinfo -->
|
||||
|
||||
<body>
|
||||
@@ -3790,29 +3789,6 @@ derivative_fn <span style="color: #666666">=</span> grad(sum_logistic)
|
||||
<li> Add a more complicated function and study the rate of convergence for the derivatives as function of the different methods</li>
|
||||
<li> Extend from linear regression to logistic regression.</li>
|
||||
</ul>
|
||||
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
|
||||
<h2 id="algorithms">algorithms </h2>
|
||||
|
||||
<p>\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}
|
||||
</p>
|
||||
|
||||
<!-- ------------------- end of main content --------------- -->
|
||||
<center style="font-size:80%">
|
||||
<!-- copyright --> © 1999-2022, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
|
||||
|
||||
Binary file not shown.
+282
-311
File diff suppressed because it is too large
Load Diff
@@ -2638,27 +2638,3 @@ print(derivative_fn(x_small))
|
||||
* Extend from linear regression to logistic regression.
|
||||
|
||||
|
||||
!split
|
||||
===== 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}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user