def sample_gibbs(distribution, num_samples=1000):
    mcmc_sampler = Gibbs(distribution)
    current_state = [0.5 < rand() for _ in range(distribution.dimension)]
    mcmc_params = MCMCParams(start=asarray(current_state, dtype=numpy.bool8), num_iterations=num_samples)
    chain = MCMCChain(mcmc_sampler, mcmc_params)
    chain.run()
    return chain.samples
dataset/ETHPy150Open karlnapf/kameleon-mcmc/kameleon_mcmc/tests/discrete/DiscreteKameleonHopfieldTest.py/sample_gibbs/swapped operands of `<`