View source on GitHub |
Particles with corresponding log weights.
tfp.experimental.mcmc.WeightedParticles(
particles, log_weights
)
This structure serves as the state
for the SequentialMonteCarlo
transition
kernel.
In some contexts, particles may be stacked across multiple inference steps,
in which case all Tensor
shapes will be prefixed by an additional dimension
of size num_steps
.
Attributes | |
---|---|
particles
|
A namedtuple alias for field number 0
|
log_weights
|
A namedtuple alias for field number 1
|