% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimizer.R
\name{sgld}
\alias{sgld}
\title{Stochastic Gradient Langevin Dynamics (SGLD) optimization}
\usage{
sgld(stepsize = 0.001, temperature = 1)
}
\arguments{
\item{stepsize}{base stepsize}

\item{temperature}{non-negative Langevin temperature}
}
\value{
a list of control variables for optimization
(used in \code{control_opt} function)
}
\description{
Stochastic Gradient Langevin Dynamics (SGLD) optimization
}
\details{
SGLD adds Gaussian noise to vanilla SGD updates:
\deqn{x_{t+1} = x_t - \eta_t \nabla U(x_t) + \sqrt{2 T \eta_t}\,\xi_t, \quad \xi_t \sim \mathcal{N}(0, I)}
where \eqn{T} is \code{temperature}. The implementation applies this
component-wise using the current effective stepsize.
}
