Warning: This project is deprecated. TensorFlow Addons has stopped development, The project will only be providing minimal maintenance releases until May 2024. See the full announcement here or on github.

tfa.optimizers.TriangularCyclicalLearningRate

View source on GitHub

A LearningRateSchedule that uses cyclical schedule.

Inherits From: CyclicalLearningRate

tfa.optimizers.TriangularCyclicalLearningRate(
 initial_learning_rate: Union[FloatTensorLike, Callable],
 maximal_learning_rate: Union[FloatTensorLike, Callable],
 step_size: tfa.types.FloatTensorLike ,
 scale_mode: str = 'cycle',
 name: str = 'TriangularCyclicalLearningRate'
)

Args

initial_learning_rate A scalar float32 or float64 Tensor or a Python number. The initial learning rate.
maximal_learning_rate A scalar float32 or float64 Tensor or a Python number. The maximum learning rate.
step_size A scalar float32 or float64 Tensor or a Python number. Step size denotes the number of training iterations it takes to get to maximal_learning_rate
scale_mode ['cycle', 'iterations']. Mode to apply during cyclic schedule
name (Optional) Name for the operation.

Methods

from_config

@classmethod
from_config(
 config
)

Instantiates a LearningRateSchedule from its config.

Args
config Output of get_config().

Returns
A LearningRateSchedule instance.

get_config

View source

get_config()

__call__

View source

__call__(
 step
)

Call self as a function.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023年05月25日 UTC.