LRScheduler

scalation.modeling.autograd.LRScheduler
trait LRScheduler

Learning Rate Scheduler (LR Scheduler) trait. Defines a generic interface for schedulers that adjust the learning rate during optimization. Concrete implementations may update the learning rate based on iteration count, loss values, or other criteria. Notes: - The parameterless step() is intended for schedulers that adjust learning rate solely based on iteration count. - The step(currentLoss) method is intended for schedulers that adapt learning rate based on the current loss value. - By default, both methods throw UnsupportedOperationException; subclasses must override the method(s) they support.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def getLastLR: Double

Return the most recently computed learning rate.

Return the most recently computed learning rate.

Attributes

Concrete methods

def step(): Unit

Advance the scheduler one step (iteration-based). Default implementation throws an exception; override if supported.

Advance the scheduler one step (iteration-based). Default implementation throws an exception; override if supported.

Attributes

def step(currentLoss: Double): Unit

Advance the scheduler using the current loss (loss-based scheduling). Default implementation throws an exception; override if supported.

Advance the scheduler using the current loss (loss-based scheduling). Default implementation throws an exception; override if supported.

Value parameters

currentLoss

the current loss value used for scheduling

Attributes