Learn R Programming

ggmlR (version 0.6.1)

ggml_schedule_cosine_decay: Cosine annealing LR scheduler

Description

Anneals LR from initial value to `eta_min` following a cosine curve.

Usage

ggml_schedule_cosine_decay(eta_min = 0, T_max = NULL)

Value

List with on_epoch_begin function

Arguments

eta_min

Minimum LR at end of schedule

T_max

Total number of epochs (defaults to nepoch from fit state)

See Also

Other callbacks: ggml_callback_early_stopping(), ggml_schedule_reduce_on_plateau(), ggml_schedule_step_decay()