% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/optimizer.R
\name{batch_decay}
\alias{batch_decay}
\title{Batch/checkpoint decay helper}
\usage{
batch_decay(
  patience = 3,
  gamma = 0.5,
  min_delta = 0,
  warmup = 0,
  min_stepsize = 0
)
}
\arguments{
\item{patience}{number of consecutive checkpoints without improvement before decay.}

\item{gamma}{decay factor in \eqn{(0,1)}.}

\item{min_delta}{minimum required decrease to count as improvement.}

\item{warmup}{number of initial checkpoints to skip.}

\item{min_stepsize}{lower bound for absolute stepsize.}
}
\value{
a \code{stepsize_control()} object.
}
\description{
Batch/checkpoint decay helper
}
\details{
Convenience helper that enables grad-norm plateau decay and keeps
iteration schedule constant.
}
