-
Notifications
You must be signed in to change notification settings - Fork 0
/
math_preamble.tex
57 lines (46 loc) · 1.61 KB
/
math_preamble.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% SCVI
\usetikzlibrary{bayesnet}
\hyphenation{hem-a-to-po-ie-tic}
\DeclarePairedDelimiterX{\infdivx}[2]{(}{)}{%
#1\;\delimsize|\delimsize|\;#2%
}
\newcommand{\kld}[2]{\ensuremath{D_{KL}\infdivx{#1}{#2}}}
% scANVI
\newcommand{\grad}{\nabla}
\newcommand{\EE}{\mathbb{E}}
\DeclareMathOperator*{\argmin}{arg\,min}
\newcommand{\bb}[1]{\mathbf{#1}}
\newcommand{\bh}{\bb{h}}
\newcommand{\bx}{\bb{x}}
\newcommand{\bz}{\bb{z}}
\newcommand{\bbf}{\bb{f}}
\newcommand\givenbase[1][]{\:#1\lvert\:}
\let\given\givenbase
\newcommand\ELBO{\text{ELBO}}
\newcommand\E[2]{\mathbb{E}_{#1}\left[ #2 \right]}
\newcommand\Elog[2]{\mathbb{E}_{#1}\left[ \log #2 \right]}
\newcommand{\qall}{ q (z, u, c, l \given x) }
\newcommand\KL[3]{\mathbb{KL}_{#1}\left( #2\lvert \lvert #3 \right)}
\newcommand\KLG[2]{\KL{\text{G}}{#1}{#2}}
\newcommand\KLM[2]{\KL{\text{M}}{#1}{#2}}
\newcommand\zzn[1]{z^{\mathbf{#1}}_n}
\newcommand\zz[1]{z^{\mathbf{#1}}}
%%% decisions
\DeclareRobustCommand{\rchi}{{\mathpalette\irchi\relax}}
\newcommand{\irchi}[2]{\raisebox{\depth}{$#1\chi$}} % inner command, used by \rchi
\DeclarePairedDelimiterX{\inftvx}[2]{(}{)}{%
#1, #2%
}
\newcommand{\kl}{\Delta_\textrm{KL}\infdivx}
\newcommand{\tv}{\Delta_\textrm{TV}\inftvx}
\newcommand{\tvsq}{\Delta^2_\textrm{TV}\inftvx}
\newcommand{\chidiv}{\Delta_{\chi^2}\infdivx}
\newcommand{\adiv}{\Delta_\alpha\infdivx}
\newcommand{\dinf}{\Delta_{\infty}\infdivx}
\DeclareMathOperator*{\argmax}{arg\,max}
\newcommand{\norm}[1]{\left\lVert#1\right\rVert}
\DeclareMathOperator{\Tr}{Tr}
\newtheorem{prop}{Proposition}
\newtheorem{definition}{Definition}
\newtheorem{thm}{Theorem}
\newtheorem{lemma}{Lemma}