Skip to content

Commit c27cd15

Browse files
committed
epigraph gls and sym
1 parent ee6db09 commit c27cd15

File tree

5 files changed

+71
-7
lines changed

5 files changed

+71
-7
lines changed

ADictML_English.pdf

4.35 KB
Binary file not shown.

ADictML_English.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
\usepackage{caption}
4646
\captionsetup[figure]{name=Fig., labelsep=period} % Customize figure caption format
4747

48+
\usepgfplotslibrary{fillbetween}
49+
\usetikzlibrary{intersections}
4850

4951

5052
\usepackage{xspace}

ADictML_Glossary_English.tex

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,64 @@
11
% !TeX spellcheck = en_GB
22

33
\newglossaryentry{minimum}
4-
{
5-
name=minimum,
6-
description={Given a set of real numbers, the minimum\index{minimum} is the smallest of those numbers.},
7-
first={minimum},text={minimum}
4+
{name=minimum,
5+
description={Given a set of real numbers, the minimum\index{minimum} is the smallest of those numbers.},
6+
first={minimum},text={minimum}
7+
}
8+
9+
\newglossaryentry{epigraph}
10+
{name={epigraph},
11+
description={The epigraph\index{epigraph} of a real-valued function $f : \mathbb{R}^n \to \mathbb{R} \cup \{+\infty\}$
12+
is the set of points lying on or above its graph:
13+
\[
14+
\operatorname{epi}(f) = \left\{ (\mathbf{x}, t) \in \mathbb{R}^n \times \mathbb{R} \,\middle|\, f(\mathbf{x}) \leq t \right\}.
15+
\]
16+
A function is \gls{convex} if and only if its epigraph is a \gls{convex} set \cite{BoydConvexBook,BertCvxAnalOpt}.
17+
\begin{figure}[H]
18+
\centering
19+
\begin{tikzpicture}[scale=1.0]
20+
\begin{axis}[
21+
axis lines = middle,
22+
xlabel = $x$,
23+
ylabel = {$$},
24+
xmin=-2, xmax=2,
25+
ymin=0, ymax=4.5,
26+
samples=100,
27+
domain=-1.5:1.5,
28+
thick,
29+
width=8cm,
30+
height=6cm,
31+
grid=none,
32+
axis on top,
33+
]
34+
% Function
35+
\addplot [blue, thick, domain=-1.5:1.5] {x^2} node [pos=0.85, anchor=south west, xshift=5pt] {$f(x)$};
36+
% Epigraph shading
37+
\addplot [
38+
name path=f,
39+
draw=none,
40+
ytick=\empty,
41+
domain=-1.5:1.5,
42+
] {x^2};
43+
\path[name path=top] (axis cs:-1.5,4) -- (axis cs:1.5,4);
44+
\addplot [
45+
blue!20,
46+
opacity=0.6,
47+
draw=none,
48+
] fill between [
49+
of=f and top,
50+
soft clip={domain=-1.5:1.5},
51+
];
52+
\node[font=\small] at (axis cs:-1.0,2.3) {$\operatorname{epi} f$};
53+
% \node[align=center, fill=white, draw=black, rounded corners, font=\small] at (axis cs:0.5,3.5) {Epigraph\\$\{(x,t) \mid f(x) \le t\}$};
54+
\end{axis}
55+
\end{tikzpicture}
56+
\caption{Epigraph of the function $f(x) = x^2$ (shaded area).}
57+
\end{figure}
58+
},
59+
first={epigraph},
60+
text={epigraph},
61+
plural={epigraphs}
862
}
963
1064

ListSymbols_English.tex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,16 @@ \section*{Sets and Functions}
2727
&\log a &\quad &\mbox{The logarithm of the positive number $a \in \mathbb{R}_{++}$. } \nonumber \\[2mm] \hline \nonumber\\[-5mm]
2828
&\hypothesis(\cdot)\!:\!\mathcal{A}\!\rightarrow\!\mathcal{B} : a \!\mapsto\!h(a) &\quad &\parbox{.75\textwidth}{
2929
A function (i.e., a map) that accepts any element $a \in \mathcal{A}$ from a set $\mathcal{A}$
30-
as input and delivers a well-defined element $h(a) \in \mathcal{B}$ of a set $\mathcal{B}$.
31-
The set $\mathcal{A}$ is the domain of the function $h$ and the set $\mathcal{B}$ is the
30+
as input and delivers a well-defined element $\hypothesis(a) \in \mathcal{B}$ of a set $\mathcal{B}$.
31+
The set $\mathcal{A}$ is the domain of the function $\hypothesis$ and the set $\mathcal{B}$ is the
3232
codomain of $\hypothesis$. \Gls{ml} aims at finding (or learning) a function $\hypothesis$ (i.e., a \gls{hypothesis})
3333
that reads in the \gls{feature}s $\featurevec$ of a \gls{datapoint} and delivers a \gls{prediction} $\hypothesis(\featurevec)$
3434
for its \gls{label} $\truelabel$.} \nonumber \\[2mm] \hline \nonumber\\[-5mm]
35+
&\operatorname{epi}(f) & \quad & \parbox{.75\textwidth}{The \gls{epigraph} of real-valued function
36+
$f: \mathbb{R}^{\featuredim}\rightarrow \mathbb{R}$.} \nonumber \\[2mm] \hline \nonumber\\[-5mm]
3537
&\nabla f(\weights) & \quad & \parbox{.75\textwidth}{The \gls{gradient} of a \gls{differentiable} real-valued function
3638
$f: \mathbb{R}^{\featuredim}\rightarrow \mathbb{R}$ is the vector
37-
$\nabla f(\weights) = \big( \frac{\partial f}{\partial \weight_{1}},\ldots,\frac{\partial f}{\partial \weight_{\featuredim}} \big)^{T} \in \mathbb{R}^{\featuredim}$ \cite[Ch. 9]{RudinBookPrinciplesMatheAnalysis}.} \nonumber
39+
$\nabla f(\weights) = \big( \frac{\partial f}{\partial \weight_{1}},\ldots,\frac{\partial f}{\partial \weight_{\featuredim}} \big)^{T} \in \mathbb{R}^{\featuredim}$ \cite[Ch. 9]{RudinBookPrinciplesMatheAnalysis}.} \nonumber
3840
\end{align}
3941
\section*{Matrices and Vectors}
4042

updateit.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
echo "$1"
3+
bash -c 'rm -f *.aux *.log *.out *.toc *.bbl *.dvi *.ist *.blg *.fls *.fdb_latexmk *.synctex.gz *.glo *.gls *.glg *.*-glg'
4+
git add .
5+
git commit -m "$1"
6+
git push origin main

0 commit comments

Comments
 (0)