Skip to contents

Reduces the learning rate when the first validation metric stops improving for patience epochs. Wraps torch::lr_reduce_on_plateau()

Resuming

As for CallbackSetLRScheduler. For this schedule the restored state includes the best score seen so far and how long it has been stagnating, so patience keeps counting across runs instead of starting over.

Super classes

CallbackSet -> CallbackSetLRScheduler -> CallbackSetLRSchedulerReduceOnPlateau

Methods

Inherited methods


CallbackSetLRSchedulerReduceOnPlateau$new()

Creates a new instance of this R6 class.

Arguments

...

(any)
The scheduler-specific initialization arguments.


CallbackSetLRSchedulerReduceOnPlateau$clone()

The objects of this class are cloneable with this method.

Usage

CallbackSetLRSchedulerReduceOnPlateau$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.