90261ba65239be82de5e01e912490e57d622360c,nussl/separation/clustering/clustering_algorithms.py,DeepClustering,project_data,#DeepClustering#Any#,122

Before Change



    def project_data(self, data):
        if self.model.layers["mel_projection"].num_mels > 0:
            data = torch.from_numpy(data).to(self.device).float().unsqueeze(0)
            data = self.model.project_data(data, clamp=False)
            data = (data > 0).squeeze(0).cpu().data.numpy().astype(bool)
        return data

After Change


            data = self._format(data, "rnn")
            data = torch.from_numpy(data).to(self.device).float()
            data = self.model.project_data(data, clamp=False)
            data = data.squeeze(-1).permute(2, 1, 0)
            data = (data > 0).cpu().data.numpy().astype(bool)
        return data

    def extract_features(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: interactiveaudiolab/nussl
Commit Name: 90261ba65239be82de5e01e912490e57d622360c
Time: 2019-03-30
Author: prem@u.northwestern.edu
File Name: nussl/separation/clustering/clustering_algorithms.py
Class Name: DeepClustering
Method Name: project_data


Project Name: pcyin/tranX
Commit Name: 97e06fa1b13c17bb70ce6b97c7e5788ea9e5fe4e
Time: 2018-01-26
Author: pcyin1992@gmail.com
File Name: model/pointer_net.py
Class Name: PointerNet
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 0ec12f6fccb07305de1fd75527f5c156dab3c772
Time: 2020-12-16
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/spectral_mixture_kernel.py
Class Name: SpectralMixtureKernel
Method Name: forward