with pm.Model() as model:
eps_1 = pm.Uniform('eps_1', lower=3.0, upper=10.0, shape=1)
eps_2 = pm.Uniform('eps_2', lower=3.0, upper=10.0, shape=1)
eps = pt.concatenate([[2.0], eps_1, eps_2])
simulated_data = simulator_op(eps, true_loss, true_thicknesses)
pm.Normal('obs', mu=simulated_data, observed=observed_data)
trace = pm.sample(2000, tune=1000, progressbar=True, return_inferencedata=True)
simulator_op
is the instance of theOp
class I defined that accepts three 1D vectors as input and returns a float type value. observed_data
is the 1D vector of float-type values. However, the program crahsed in Vscode. Anyone can help me? Thanks in advance.
The kernel crashed while executing code in the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.