You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are regions of parameter space which are not valid, a model function can exclude them from fitting according to the docs. However the C models do it differently and require a valid = (Boolean expression) while the python model is told to return np.nan.
Recent attempts at using this second version shows it does not actually work for fitting. Upon investigation @pkienzle believes that the following code placed at line 225 of kernelpy.py] might fix the problem
If there are regions of parameter space which are not valid, a model function can exclude them from fitting according to the docs. However the C models do it differently and require a
valid = (Boolean expression)
while the python model is told to returnnp.nan
.Recent attempts at using this second version shows it does not actually work for fitting. Upon investigation @pkienzle believes that the following code placed at line 225 of
kernelpy.py
] might fix the problemThat said, a preferred solution would be to make the two interfaces the same. That however would require parsing a C style Boolean expression.
The text was updated successfully, but these errors were encountered: