<p>我需要对数似然项的后验样本来运行psi <a href="https://github.com/avehtari/PSIS/blob/master/py/psis.py" rel="nofollow noreferrer">here</a>,这样</p>
<pre><code>log_lik : ndarray
Array of size n x m containing n posterior samples of the log likelihood
terms :math:`p(y_i|\theta^s)`.
</code></pre>
<p>其中小例子<a href="http://pystan.readthedocs.io/en/latest/getting_started.html" rel="nofollow noreferrer">here</a>就是<code>pip install pystan</code>和</p>
^{pr2}$
<p><strong>如何获得PyStan拟合模型对数似然的后验样本?</strong></p>