this is for holding javascript data
Xavier Holt deleted subsubsection_Sampling_a_Point_begin__.tex
over 8 years ago
Commit id: 47ea5e2c6da98838817a56ae0e043d4dea0d35ed
deletions | additions
diff --git a/layout.md b/layout.md
index 2603a98..b06cf7f 100644
--- a/layout.md
+++ b/layout.md
...
subsection_Formulating_the_Integral_In__.tex
Slice_Sampling_Slice_sampling_is__.md
subsubsection_Finding_an_Interval_begin__.tex
subsubsection_Sampling_a_Point_begin__.tex
Bayesian_Optimisation_over_the_Hyperparameters__.md
diff --git a/subsubsection_Sampling_a_Point_begin__.tex b/subsubsection_Sampling_a_Point_begin__.tex
deleted file mode 100644
index af4658a..0000000
--- a/subsubsection_Sampling_a_Point_begin__.tex
+++ /dev/null
...
\subsubsection{Sampling a Point}
\begin{lstlisting}[mathescape] % Start your code-block
# Input
# - f: a function proportional to the target density
# - ${x_0}$: the current point
# - y: the sampled vertical level defining the slice
# - (L,R): the interval to sample from
$\\ \\ \\$
def sample:
while true:
$x_1 \sim U(L,R)$
L $\leftarrow$ min($x_0, x_1$)
R $\leftarrow$ max($x_0, x_1$)
if y > f($x_1$):
return $x_1$
\end{lstlisting}