Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the Latex syntax in Variational_Inference_and_Joint_Distribut… #1783

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,27 @@
"## Overview of Bayesian Variational Inference\n",
"\n",
"Suppose we have the following generative process, where $\\theta$ represents random parameters, $\\omega$ represents deterministic parameters, and the $x_i$ are features and the $y_i$ are target values for $i=1,\\ldots,n$ observed data points:\n",
"\\begin{align*}\n",
"\n",
"$$\\begin{align*}\n",
"&\\theta \\sim r(\\Theta) && \\text{(Prior)}\\\\\n",
"&\\text{for } i = 1 \\ldots n: \\nonumber \\\\\n",
"&\\quad y_i \\sim p(Y_i|x_i, \\theta, \\omega) && \\text{(Likelihood)}\n",
"\\end{align*}\n",
"\\end{align*}$$\n",
"\n",
"VI is then characterized by:\n",
"$\\newcommand{\\E}{\\operatorname{\\mathbb{E}}}\n",
"\\newcommand{\\K}{\\operatorname{\\mathbb{K}}}\n",
"\\newcommand{\\defeq}{\\overset{\\tiny\\text{def}}{=}}\n",
"\\DeclareMathOperator*{\\argmin}{arg\\,min}$\n",
"\n",
"\\begin{align*}\n",
"$$\\begin{align*}\n",
"-\\log p(\\{y_i\\}_i^n|\\{x_i\\}_i^n, \\omega)\n",
"&\\defeq -\\log \\int \\textrm{d}\\theta\\, r(\\theta) \\prod_i^n p(y_i|x_i,\\theta, \\omega) && \\text{(Really hard integral)} \\\\\n",
"&= -\\log \\int \\textrm{d}\\theta\\, q(\\theta) \\frac{1}{q(\\theta)} r(\\theta) \\prod_i^n p(y_i|x_i,\\theta, \\omega) && \\text{(Multiply by 1)}\\\\\n",
"&\\le - \\int \\textrm{d}\\theta\\, q(\\theta) \\log \\frac{r(\\theta) \\prod_i^n p(y_i|x_i,\\theta, \\omega)}{q(\\theta)} && \\text{(Jensen's inequality)}\\\\\n",
"&\\defeq \\E_{q(\\Theta)}[ -\\log p(y_i|x_i,\\Theta, \\omega) ] + \\K[q(\\Theta), r(\\Theta)]\\\\\n",
"&\\defeq ``\\text{expected negative log likelihood\"} + ``\\text{kl regularizer\"}\n",
"\\end{align*}\n",
"\\end{align*}$$\n",
"\n",
"(Technically we're assuming $q$ is [absolutely continuous](https://en.wikipedia.org/wiki/Absolute_continuity#Absolute_continuity_of_measures) with respect to $r$. See also, [Jensen's inequality](https://en.wikipedia.org/wiki/Jensen%27s_inequality).)\n",
"\n",
Expand Down
Loading