Skip to content

Commit

Permalink
Refactor PPCA a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
cwindolf committed Jan 10, 2025
1 parent d1237b7 commit baa060c
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 181 deletions.
2 changes: 1 addition & 1 deletion src/dartsort/cluster/gaussian_mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -3108,7 +3108,7 @@ def noise_whiten(
nu = z.new_zeros((nbids.numel(), *z.shape[1:]))
for j, nbid in enumerate(nbids):
nbchans = neighborhoods.neighborhoods[nbid]
nbvalid = nbchans < noise.n_channels
nbvalid = neighborhoods.valid_mask(nbid)
nbchans = nbchans[nbvalid]
innb = sp.neighborhood_ids == nbid
nbcov = noise.marginal_covariance(
Expand Down
Loading

0 comments on commit baa060c

Please sign in to comment.