Open chaozg opened 2 months ago
I am unable to reproduce this in main just now. @chaozg
We can focus on other areas for now.
Can reproduce on the branch related to #518.
Running warmup first seems to work?
import cuqi
import matplotlib.pyplot as plt
import numpy as np
# np.random.seed(100)
beta = cuqi.distribution.Beta(0.5, 0.5)
sampler = cuqi.experimental.mcmc.MALA(beta, initial_point=0.1, scale=0.1)
sampler.warmup(20000)
sampler.sample(20000)
samples = sampler.get_samples()
samples.plot_trace()
I got this result:
initial_point=1
gives error whileinitial_point=np.array([0.1])
works fine. Possibly related to #487 for Gibbs.MWE to reproduce error:
Error: