cosineLearnRate
Description
A cosine learning rate schedule object drops the learning rate using a cosine curve and incorporates warm restarts.
Tip
For most tasks, setting the Period
argument to the number of training steps can yield better results. To easily use a cosine learning rate schedule that drops the learning rate over the length of the training process, specify the LearnRateSchedule
argument of the trainingOptions
function as "cosine"
.
Creation
Description
creates a
schedule
= cosineLearnRatecyclicalLearnRate
object.
specifies optional properties using
one or more name-value arguments. For example, schedule
= cosineLearnRate(Name=Value
)InitialFactor=1.5
specifies initial scaling of the learning rate with a factor of 1.5.
Properties
Examples
Algorithms
Version History
Introduced in R2024b