Skip to content

Commit

Permalink
Visualize PPCA covs
Browse files Browse the repository at this point in the history
  • Loading branch information
cwindolf committed Nov 21, 2024
1 parent 64721b4 commit b3d55eb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/dartsort/cluster/gaussian_mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -1671,10 +1671,17 @@ def pick_channels(self, active_chans, aweights_sum):

assert False

def marginal_covariance(self, channels, cache_key=None, device=None):
ncov = self.noise.marginal_covariance(
channels, cache_key=cache_key, device=device
)
def marginal_covariance(
self, channels, cache_key=None, device=None, signal_only=False
):
if signal_only:
ncov = operators.ZeroLinearOperator(
2 * [channels.numel() * self.noise.rank]
)
else:
ncov = self.noise.marginal_covariance(
channels, cache_key=cache_key, device=device
)
zero_signal = (
self.cov_kind == "zero" or self.cov_kind == "ppca" and not self.ppca_rank
)
Expand Down

0 comments on commit b3d55eb

Please sign in to comment.