Xavier Holt deleted subsubsection_Sampling_a_Point_begin__.tex  over 8 years ago

Commit id: 47ea5e2c6da98838817a56ae0e043d4dea0d35ed

deletions | additions      

       

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           

\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}