7685876d31bc74dc9e1a3426c337d0c55c3d87da,paderbox/speech_enhancement/beamformer.py,,get_pca_vector,#,171
Before Change
with shape (..., sensors, sensors)
:return: Set of beamforming vectors with shape (..., sensors)
return get_pca(target_psd_matrix)[0]
// TODO: Possible test case: Assert W^H * H = 1.
// TODO: Make function more stable for badly conditioned noise matrices.
After Change
eigenvectors, eigenvalues = get_pca(target_psd_matrix)
if scaling is None:
scale = 1
elif scaling == "trace ":
// ToDo: check whether this improves bf results
scale = np.sqrt(
np.trace(target_psd_matrix, axis1=-1, axis2=-2)
) / np.linalg.norm(eigenvectors, axis=-1)
scale = scale[..., None]
print(scale.shape)
elif scaling == "eigenvalue":
// ToDo: check whether this improves bf results
scale = eigenvalues / np.linalg.norm(
eigenvectors, axis=-1)
scale = scale[..., None]
else:
raise ValueError
return eigenvectors * scale
// TODO: Possible test case: Assert W^H * H = 1.
// TODO: Make function more stable for badly conditioned noise matrices.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: fgnt/pb_bss
Commit Name: 7685876d31bc74dc9e1a3426c337d0c55c3d87da
Time: 2019-08-02
Author: heitkaemper@nt.upb.de
File Name: paderbox/speech_enhancement/beamformer.py
Class Name:
Method Name: get_pca_vector
Project Name: HsinYingLee/DRIT
Commit Name: fad73753f836de5cdd08d8e23d26c1170d19b386
Time: 2018-04-09
Author: hytseng0509@gmail.com
File Name: src/dataset_unpair.py
Class Name: dataset_unpair
Method Name: __getitem__
Project Name: google-research/google-research
Commit Name: f705891da38c245857f04484ac7b771a37be7571
Time: 2021-01-08
Author: barron@google.com
File Name: jaxnerf/nerf/utils.py
Class Name:
Method Name: learning_rate_decay