tfp.substrates.jax.math.MinimizeTraceableQuantities
Stay organized with collections
Save and categorize content based on your preferences.
Namedtuple of quantities that may be traced from tfp.math.minimize
.
tfp.substrates.jax.math.MinimizeTraceableQuantities(
step,
loss,
gradients,
parameters,
has_converged,
convergence_criterion_state,
optimizer_state,
seed
)
These are (in order):
step
: int Tensor
index (starting from zero) of the current optimization
step.
loss
: float Tensor
value returned from the user-provided loss_fn
.
gradients
: list of Tensor
gradients of loss
with respect to the
parameters.
parameters
: list of Tensor
values of parameters being optimized. This
corresponds to trainable_variables
passed to minimize
, or
init
passed to minimize_stateless
.
has_converged
: boolean Tensor
of the same shape as loss_fn
, with
True
values corresponding to loss entries that have converged according
to the user-provided convergence criterion. If no convergence criterion
was specified, this is None
.
convergence_criterion_state
: structure of Tensor
s containing any
auxiliary state (e.g., moving averages of loss or other quantities)
maintained by the user-provided convergence criterion.
optimizer_state
: structure of Tensor
s containing optional state from
a user-provided pure optimizer.
Attributes |
step
|
A namedtuple alias for field number 0
|
loss
|
A namedtuple alias for field number 1
|
gradients
|
A namedtuple alias for field number 2
|
parameters
|
A namedtuple alias for field number 3
|
has_converged
|
A namedtuple alias for field number 4
|
convergence_criterion_state
|
A namedtuple alias for field number 5
|
optimizer_state
|
A namedtuple alias for field number 6
|
seed
|
A namedtuple alias for field number 7
|
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-11-21 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-21 UTC."],[],[]]