tf_agents.bandits.policies.linalg.update_inverse
Stay organized with collections
Save and categorize content based on your preferences.
Updates the inverse using the Woodbury matrix identity.
tf_agents.bandits.policies.linalg.update_inverse(
a_inv: tf_agents.typing.types.Float
,
x: tf_agents.typing.types.Float
) -> tf_agents.typing.types.Float
Given a matrix A
of size d-by-d and a matrix X
of size k-by-d, this
function computes the inverse of B = A + X^T X, assuming that the inverse of
A is available.
Reference:
https://en.wikipedia.org/wiki/Woodbury_matrix_identity
Args |
a_inv
|
a Tensor of shape [d , d ]. This is the current inverse of A .
|
x
|
a Tensor of shape [k , d ].
|
Returns |
The update that needs to be added to 'a_inv' to compute the inverse.
If x is empty, a zero matrix is returned.
|
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 2024-04-26 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 2024-04-26 UTC."],[],[]]