tfp.experimental.mcmc.chees_rate_criterion
Stay organized with collections
Save and categorize content based on your preferences.
ChEES rate criterion.
tfp.experimental.mcmc.chees_rate_criterion(
previous_state,
proposed_state,
accept_prob,
trajectory_length,
validate_args=False,
experimental_shard_axis_names=None,
experimental_reduce_chain_axis_names=None
)
This is just like chees_criterion
, but normalized by the trajectory
length:
ChEES rate = 1/4 E[(||x' - E[x]||**2 - ||x - E[x]||**2)**2 /
trajectory_length]
Args |
previous_state
|
(Possibly nested) floating point Tensor . The previous
state of the HMC chain.
|
proposed_state
|
(Possibly nested) floating point Tensor . The proposed
state of the HMC chain.
|
accept_prob
|
Floating Tensor . Probability of acceping the proposed state.
|
trajectory_length
|
Floating Tensor . Trajectory length.
|
validate_args
|
Whether to perform non-static argument validation.
|
experimental_shard_axis_names
|
A structure of string names indicating how
members of the state are sharded.
|
experimental_reduce_chain_axis_names
|
A string or list of string names
indicating which named chain axes to reduce over when computing the
criterion.
|
Returns |
chees_rate
|
The value of the ChEES rate criterion.
|
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.
[null,null,["Last updated 2023-11-21 UTC."],[],[],null,["# tfp.experimental.mcmc.chees_rate_criterion\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/probability/blob/v0.23.0/tensorflow_probability/python/experimental/mcmc/gradient_based_trajectory_length_adaptation.py#L286-L327) |\n\nChEES rate criterion. \n\n tfp.experimental.mcmc.chees_rate_criterion(\n previous_state,\n proposed_state,\n accept_prob,\n trajectory_length,\n validate_args=False,\n experimental_shard_axis_names=None,\n experimental_reduce_chain_axis_names=None\n )\n\nThis is just like `chees_criterion`, but normalized by the trajectory\nlength: \n\n ChEES rate = 1/4 E[(||x' - E[x]||**2 - ||x - E[x]||**2)**2 /\n trajectory_length]\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| `previous_state` | (Possibly nested) floating point `Tensor`. The previous state of the HMC chain. |\n| `proposed_state` | (Possibly nested) floating point `Tensor`. The proposed state of the HMC chain. |\n| `accept_prob` | Floating `Tensor`. Probability of acceping the proposed state. |\n| `trajectory_length` | Floating `Tensor`. Trajectory length. |\n| `validate_args` | Whether to perform non-static argument validation. |\n| `experimental_shard_axis_names` | A structure of string names indicating how members of the state are sharded. |\n| `experimental_reduce_chain_axis_names` | A string or list of string names indicating which named chain axes to reduce over when computing the criterion. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|--------------|----------------------------------------|\n| `chees_rate` | The value of the ChEES rate criterion. |\n\n\u003cbr /\u003e"]]