tfp.mcmc.random_walk_normal_fn
Stay organized with collections
Save and categorize content based on your preferences.
Returns a callable that adds a random normal perturbation to the input.
tfp.mcmc.random_walk_normal_fn(
scale=1.0, name=None
)
This function returns a callable that accepts a Python list
of Tensor
s of
any shapes and dtypes
representing the state parts of the current_state
and a random seed. The supplied argument scale
must be a Tensor
or Python
list
of Tensor
s representing the scale of the generated
proposal. scale
must broadcast with the state parts of current_state
.
The callable adds a sample from a zero-mean normal distribution with the
supplied scales to each state part and returns a same-type list
of Tensor
s
as the state parts of current_state
.
Args |
scale
|
a Tensor or Python list of Tensor s of any shapes and dtypes
controlling the scale of the normal proposal distribution.
|
name
|
Python str name prefixed to Ops created by this function.
Default value: 'random_walk_normal_fn'.
|
Returns |
random_walk_normal_fn
|
A callable accepting a Python list of Tensor s
representing the state parts of the current_state and an int
representing the random seed to be used to generate the proposal. The
callable returns the same-type list of Tensor s as the input and
represents the proposal for the RWM algorithm.
|
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."],[],[]]