CUQI-DTU / CUQIpy

https://cuqi-dtu.github.io/CUQIpy/
Apache License 2.0
44 stars 9 forks source link

AttributeError: module 'cuqi.experimental.mcmc' has no attribute 'pCN' #528

Closed joshuahellier closed 4 weeks ago

joshuahellier commented 1 month ago

Description

Made custom model without derivative/gradient defined. When running UQ on Bayesian problem constructed with it, I get crash "AttributeError: module 'cuqi.experimental.mcmc' has no attribute 'pCN'". Probably a naming bug.

Example to reproduce

Custom model actually used annoying to put in, but would expect similar results with similar problems.

bp = BayesianProblem(h, m)
bp.set_data(m=synthetic_sample)
samples = bp.UQ(exact=hyp_1, experimental=True)
chaozg commented 3 weeks ago

Thank you @joshuahellier for reporting this bug and I believe is fixed by #534.

(The issue was automatically closed by GitHub since #534 is merged to the main branch)