Pointwise log-likelihood for loo/waic with custom "black-box" probability distribution

Check the code examples here: pymc.CustomDist — PyMC dev documentation

You have to pass the parameters function and the logp function as a kwarg (not yet evaluated)