% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimizer.R
\name{stepsize_decay}
\alias{stepsize_decay}
\title{Stepsize decay schedule}
\usage{
stepsize_decay(
  method = c("none", "grad_norm_plateau"),
  patience = 3,
  gamma = 0.5,
  min_delta = 0,
  warmup = 0,
  min_stepsize = 0
)
}
\arguments{
\item{method}{decay strategy. "none" disables decay; "grad_norm_plateau"
decays when mean grad.norm() across chains fails to decrease for a number
of epochs.}

\item{patience}{number of consecutive epochs without grad.norm() improvement
before decaying stepsize.}

\item{gamma}{decay factor applied when triggered (0 < gamma < 1).}

\item{min_delta}{minimum required decrease in grad.norm() to be counted as improvement.}

\item{warmup}{number of initial epochs to skip decay checks.}

\item{min_stepsize}{lower bound for stepsize after decay (absolute value).}
}
\value{
a list of control variables for stepsize decay (used in \code{control_opt}).
}
\description{
Stepsize decay schedule
}
\details{
Define a stepsize decay strategy for use in \code{control_opt()}.
Currently supports the plateau-based schedule using grad.norm().
}
