b27721ab556fabb2a7e7fcb223ec1f9f6eb4418d,nt/speech_enhancement/beamformer.py,,get_pca_vector,#Any#,31

Before Change


    bins, sensors, _ = target_psd_matrix.shape
    beamforming_vector = np.empty((bins, sensors), dtype=np.complex)
    for f in range(bins):
        eigenvals, eigenvecs = eigh(target_psd_matrix[f, :, :])
        beamforming_vector[f, :] = eigenvecs[:, np.argmax(eigenvals)]
    return beamforming_vector

After Change


    // Find max eigenvals
    vals = np.argmax(eigenvals, axis=-1)
    // Select eigenvec for max eigenval
    beamforming_vector = np.array([eigenvecs[i, :, vals[i]] for i in range(eigenvals.shape[0])])
    // Reconstruct original shape
    beamforming_vector = np.reshape(beamforming_vector, shape[:-1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: fgnt/pb_bss
Commit Name: b27721ab556fabb2a7e7fcb223ec1f9f6eb4418d
Time: 2015-10-07
Author: cbj@mail.uni-paderborn.de
File Name: nt/speech_enhancement/beamformer.py
Class Name:
Method Name: get_pca_vector


Project Name: fgnt/pb_bss
Commit Name: ee9dbe4f86ef6cd2800587a7ecd2e80acda1db8c
Time: 2016-07-28
Author: mail@lukas-drude.de
File Name: nt/speech_enhancement/beamformer.py
Class Name:
Method Name: get_pca_vector


Project Name: geomstats/geomstats
Commit Name: fc77bf19a2929bdb181f95f0ea272eb7283c4efc
Time: 2018-05-03
Author: ninamio78@gmail.com
File Name: geomstats/spd_matrices_space.py
Class Name: SPDMatricesSpace
Method Name: sqrtm