Hello, I am trying to make fully reproducible ADVI runs, meaning that the approx.hist
path should be exactly the same between runs. The current specification of seed at pm.ADVI
seems to work.
with pm.Model() as model:
....
with model :
advi = pm.ADVI(random_seed=74)
approx = advi.fit(n=10000, obj_optimizer=pm.adam(learning_rate=0.01), callbacks=[tracker])
However, if I change a compiledir for aesara, suddenly approx.hist
is completely different. Did I forget to specify random seed somewhere? Is it even possible to obtain exactly the same inference results on different platforms?
os.environ['AESARA_FLAGS'] = 'base_compiledir=/some_new_path/.aesara'
Thank you