Encounter the following issue when running MCMC.py.
/usr/local/lib/python2.7/dist-packages/scipy/stats/_distn_infrastructure.py:2507: RuntimeWarning: invalid value encountered in true_divide
pk = 1.0*pk / np.sum(pk, axis=0)
Traceback (most recent call last):
File "MCMC.py", line 573, in
lmbda=0.0004, f_sd=0.008, Tt=1)
File "MCMC.py", line 530, in MCMC_softmax_proposal
mcmcSamplerSoftmax(project_name,targetName=targetName)
File "MCMC.py", line 381, in mcmcSamplerSoftmax
log=True)
File "MCMC.py", line 185, in softmaxSamplingScheme
sample_ca_prob = ca_probs.loc[sample_ca_id]
File "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1373, in getitem
return self._getitem_axis(maybe_callable, axis=axis)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1626, in _getitem_axis
self._has_valid_type(key, axis)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1514, in _has_valid_type
error()
File "/usr/local/lib/python2.7/dist-packages/pandas/core/indexing.py", line 1501, in error
axis=self.obj._get_axis_name(axis)))
KeyError: u'the label [37] is not in the [index]'
Encounter the following issue when running
MCMC.py
.