how to fit a method belonging to an instance with pymc3?
问题 I failed to fit a method belonging to an instance of a class, as a Deterministic function, with PyMc3. Can you show me how to do that ? For simplicity, my case is summarised below with a simple example. In reality, my constraint is that everything is made through a GUI and actions like ‘find_MAP’ should be inside methods linked to pyqt buttons. I want to fit the function ‘FunctionIWantToFit’ over the data points. Problem, the following code: import numpy as np import pymc3 as pm3 from scipy