[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in Resampler #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Prob. a bug as mu is not ordered; mask should apply to the kernel locs
  • Loading branch information
nzqo committed Sep 4, 2018
commit 8c9ebd4bf07ce21c7867a902565924af362b887e
2 changes: 1 addition & 1 deletion src/qinfer/resamplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def __call__(self, model, particle_dist,
# This may look a little weird, but it should delete the unused
# elements of js, so that we don't need to reallocate.
js = js[np.logical_not(valid_mask)]
mus = mus[:idxs_to_resample.size, :]
mus = mus[idxs_to_resample, :]

if idxs_to_resample.size:
# We failed to force all models to be valid within maxiter attempts.
Expand Down