module resampling
function compute_mixing_time
compute_mixing_time(
sampler: Callable,
data: Tensor,
params: Dict[str, Tensor],
n_max_sweeps: int,
beta: float
) → Dict[str, list]
Computes the mixing time using the t and t/2 method. The sampling will halt when the mixing time is reached or the limit of n_max_sweeps
sweeps is reached.
Args:
sampler
(Callable): Sampling function.data
(torch.Tensor): Initial data.params
(Dict[str, torch.Tensor]): Parameters for the sampling.n_max_sweeps
(int): Maximum number of sweeps.beta
(float): Inverse temperature for the sampling.
Returns:
Dict[str, list]
: Results of the mixing time analysis.
This file was automatically generated via lazydocs.