Skip to main content
IBM Quantum Platform
이 페이지는 Qiskit SDK 의 이전 버전에서 가져온 것으로, 최신 버전에는 존재하지 않습니다. 최신 버전으로 업데이트하시기를 권장합니다. 자세한 정보는 릴리스 정보를 참조하십시오.

LearningRate

class qiskit.algorithms.optimizers.optimizer_utils.LearningRate(learning_rate)

GitHub

Bases: Generator

Represents a Learning Rate. Will be an attribute of GradientDescentState. Note that GradientDescent also has a learning rate. That learning rate can be a float, a list, an array, a function returning a generator and will be used to create a generator to be used during the optimization process. This class wraps Generator so that we can also access the last yielded value.

Parameters

learning_rate (float |list[float] | np.ndarray | Callable[[], Generator[float, None, None]]) – Used to create a generator to iterate on.


Attributes

current

Returns the current value of the learning rate.


Methods

close

close()

Raise GeneratorExit inside generator.

send

send(value)

Send a value into the generator. Return next yielded value or raise StopIteration.

throw

throw(typ, val=None, tb=None)

Raise an exception in the generator. Return next yielded value or raise StopIteration.

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.