python-qinfer icon indicating copy to clipboard operation
python-qinfer copied to clipboard

Liu-West Resampler returns wrong shape weights when changing n_particles

Open cgranade opened this issue 8 years ago • 0 comments

In Line 358 of resamplers.py, the new weights array to be returned is calculated as np.ones((w.shape[0],)) / w.shape[0], where w is the weight array for the original (pre-resampling) particle approximation. This fails, however, if the resampler is called with an explicit n_particles argument.

cgranade avatar Jan 20 '17 19:01 cgranade