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
I am looking into this a bit but am currently understanding the function a bit more.
Is the point actually optional with make_shared = False?
I am seeing that point will be indexed in the for loop which seems like it will cause an error. Am I reading that wrong?
Seems like there would need some additional logic to make that happen.
@wd60622 You're right. In that case the error message in the ifelse branch makes no sense. We can just make the point a required argument and remove the message.
@wd60622 You're right. In that case the error message in the ifelse branch makes no sense. We can just make the point a required argument and remove the message.
Gotcha. Also noticing that when this function is called (smc and metropolis files in helper functions), the make_shared is never set from the default. i.e. raised error never touch with the currently implemented pymc code. Where you suggesting removing the error raising? Is there justification for keeping that ifelse branch in all together.
Obviously different scope. I can at least take a stab at adding to the type hints, better documenting what currently exists, and try to make some example based on the code I see for the docstring
This function could benefit from some more clear docstrings and example.
make_shared
is Falseshared
shared
optionalpymc/pymc/aesaraf.py
Lines 565 to 586 in 761f77d
The text was updated successfully, but these errors were encountered: