generated from slds-lmu/lecture_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge overleaf-2023-11-29-2134 into main
- Loading branch information
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
slides/regularization/slides-regu-softthresholding-lasso-deepdive.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
\documentclass[11pt,compress,t,notes=noshow, xcolor=table]{beamer} | ||
\input{../../style/preamble} | ||
\input{../../latex-math/basic-math} | ||
\input{../../latex-math/basic-ml} | ||
|
||
\newcommand{\titlefigure}{figure/graddes_vs_weightdecay.png} | ||
\newcommand{\learninggoals}{ | ||
\item todo | ||
} | ||
|
||
\title{Introduction to Machine Learning} | ||
\date{} | ||
|
||
\begin{document} | ||
|
||
\lecturechapter{Soft-thresholding and L1 regularization deep-dive} | ||
\lecture{Introduction to Machine Learning} | ||
|
||
|
||
|
||
\begin{vbframe}{Soft-thresholding and L1 regularization} | ||
In the lecture, we wanted to solve | ||
\[ | ||
\min_{\thetab} \mathcal{\tilde R}_{\text{reg}}(\thetab) = \min_{\thetab}\mathcal{R}_{\text{emp}}(\thetah) + \sum_j \left[ \frac{1}{2} H_{j,j} (\theta_j - \hat{\theta}_j)^2 \right] + \sum_j \lambda |\theta_j|. | ||
\] | ||
This is a convex problem (since it is the sum of convex functions) for which, in general, no analytical solution exists. \\ | ||
\lz | ||
|
||
For convex functions, every stationary point is a minimum. \\ | ||
\lz | ||
|
||
Hence, we will analyze the coordinate-wise derivative $\frac{\partial}{\partial \thetab_j} \mathcal{\tilde R}_{\text{reg}}.$ \\ | ||
(Note: This derivative is not defined for $\thetab_j = 0)$\\ | ||
|
||
\framebreak | ||
|
||
First, we will focus on the everywhere differentiable part: | ||
\begin{align*} | ||
\frac{\partial}{\partial \thetab_j}\sum_j \left[\frac{1}{2} H_{j,j} (\theta_j - \hat{\theta}_j)^2 \right] | ||
&= H_{j,j} (\theta_j - \hat{\theta}_j)\cdot(-1) \\ | ||
&=H_{j,j} \hat{\theta}_j - H_{j,j}\theta_j \\ | ||
\end{align*} | ||
Now, we analyze the stationary points of $\riskrt.$ \\ | ||
So, we consider the three cases $\hat{\theta}_{\text{Lasso},j} > 0, \hat{\theta}_{\text{Lasso},j} < 0, \hat{\theta}_{\text{Lasso},j} = 0$ \\ | ||
\lz | ||
1) $\hat{\theta}_{\text{Lasso},j} < 0:$ | ||
$\frac{\partial}{\partial \thetab_j}\mathcal{\tilde R}_{\text{reg}}$ | ||
\framebreak | ||
|
||
|
||
|
||
|
||
\end{vbframe} | ||
|
||
\endlecture | ||
\end{document} | ||
|