Skip to content

Commit

Permalink
Merge pull request #73 from whitewhim2718/fix-smc-resampler-weights
Browse files Browse the repository at this point in the history
Fix smc resampler weights
  • Loading branch information
cgranade committed Sep 1, 2016
2 parents b2e7436 + e0bc671 commit 4787770
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/qinfer/smc.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,6 @@ def resample(self):
# Possibly canonicalize, if we've been asked to do so.
if self._canonicalize:
self.particle_locations[:, :] = self.model.canonicalize(self.particle_locations)

# Reset the weights to uniform.
self.particle_weights[:] = (1/self.n_particles)

# Instruct the model to clear its cache, demoting any errors to
# warnings.
Expand Down

0 comments on commit 4787770

Please sign in to comment.