We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddac821 commit b744170Copy full SHA for b744170
src/qinfer/tests/test_smc.py
@@ -64,7 +64,7 @@ def likelihood(self, outcomes, modelparams, expparams):
64
assert expparams.shape == (1,) # Only defined for single experiments.
65
66
pr0 = np.ones((modelparams.shape[0], expparams.shape[0])) / 2
67
- idx_dec_at = np.ceil(expparams['alpha'][0] * modelparams.shape[0])
+ idx_dec_at = np.ceil(expparams['alpha'][0] * modelparams.shape[0]).astype(np.int)
68
pr0[idx_dec_at:, :] = 0
69
70
return FiniteOutcomeModel.pr0_to_likelihood_array(outcomes, pr0)
0 commit comments