Uniform prior is slow
Evaluating the Uniform.prob method is super slow considering what it's doing.
This is because we use the scipy method rather than the analytic version directly.
This is probably also an issue for other priors that use the scipy implementation.
We should:
-
profile all of the priors which use scipy. -
see if we can make them run faster, sometimes the checking can be avoided by using the ._probmethod rather than the.probmethod. -
if not, just code in the probandlogprobmethods ourself.
Edited by Liting Xiao