Survival analysis in PyMC 3
问题 I tried to port simple survival model from here (the first one in introduction) form PyMC 2 to PyMC 3. However, I didn't find any equivalent to "observed" decorator and my attempt to write a new distribution failed. Could someone provide an example how is this done in PyMC 3? 回答1: This is a tricky port, and requires three new concepts: Use of the theano tensor Use of the DensityDist Passing a dict as observed This code provides the equivalent model as the PyMC2 version you linked to above: