In the newer versions of pymc you can define such models generatively with CustomDist:
2 Likes
In the newer versions of pymc you can define such models generatively with CustomDist: