Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_keras_optimizer

Get Keras Optimizer


Description

Utility function to construct optimiser from keras, primarily for internal use.

Usage

get_keras_optimizer(
  optimizer = "adam",
  lr = 0.02,
  beta_1 = 0.9,
  beta_2 = 0.999,
  epsilon = NULL,
  decay = 0,
  clipnorm = NULL,
  clipvalue = NULL,
  schedule_decay = 0.004,
  momentum = 0,
  nesterov = FALSE
)

Arguments

optimizer

(character(1))
Optimizer to construct, see details for those available. Default is "adam".

lr

(numeric(1))
Passed to all optimizers except adadelta and adagrad.

beta_1, beta_2, epsilon

(numeric(1))
Passed to adamax, adam, and nadam.

decay

(numeric(1))
Passed to adamax, adam, and sgd.

clipnorm, clipvalue

(numeric(1))
Passed to adamax, adam, nadam, and sgd.

schedule_decay

(numeric(1))
Passed to nadam.

momentum

(numeric(1))
Passed to sgd.

nesterov

(logical(1))
Passed to sgd.

Details

Implemented optimizers are

Examples

if (requireNamespaces("keras")) {
  get_keras_optimizer()

  get_keras_optimizer(optimizer = "adamax", decay = 0.1, lr = 0.01)
}

survivalmodels

Models for Survival Analysis

v0.1.11
MIT + file LICENSE
Authors
Raphael Sonabend [aut, cre] (<https://orcid.org/0000-0001-9225-4654>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.