R/param_momentum.R

Defines functions momentum

Documented in momentum

#' Gradient descent momentum parameter
#'
#' A useful parameter for neural network models using gradient descent
#'
#' @inheritParams Laplace
#' @examples
#' momentum()
#' @export
momentum <- function(range = c(0, 1), trans = NULL) {
  new_quant_param(
    type = "double",
    range = range,
    inclusive = c(TRUE, TRUE),
    trans = trans,
    label = c(momentum = "Gradient Descent Momentum"),
    finalize = NULL
  )
}

Try the dials package in your browser

Any scripts or data that you put into this service are public.

dials documentation built on April 3, 2023, 5:43 p.m.