c813b290c4e2f8938ae7a201f7f35a80a869a1a0,nisl/decomposition/canica.py,CanICA,fit,#CanICA#Any#Any#,98

Before Change


        pcas = list()
        // Do PCAs and CCAs
        for subject_data in data:
            subject_data -= subject_data.mean(axis=0)
            // PCA
            std = subject_data.std(axis=0)
            std[std==0] = 1
            subject_data /= std
            subject_data = subject_data.T
            subject_data = self.memory.cache(linalg.svd)(subject_data,
                    full_matrices=False)[0]
            subject_data = subject_data[:, :2 * self.n_components]

After Change


            data = copy.deepcopy(data)

        pcas = Parallel(n_jobs=self.n_jobs, verbose=self.verbose)(
                delayed(subject_pca)(subject_data,
                    n_components=self.n_components, mem=self.mem)
                for subject_data in data)
        pcas = np.concatenate(pcas, axis=1)

        if self.kurtosis_thr is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nilearn/nilearn
Commit Name: c813b290c4e2f8938ae7a201f7f35a80a869a1a0
Time: 2012-10-19
Author: alexandre.abraham@cea.fr
File Name: nisl/decomposition/canica.py
Class Name: CanICA
Method Name: fit


Project Name: rail-berkeley/softlearning
Commit Name: a41f2ff4c1437f0b61e76265c31bdec71be0556f
Time: 2019-04-26
Author: hartikainen@berkeley.edu
File Name: softlearning/algorithms/sac.py
Class Name: SAC
Method Name: get_diagnostics


Project Name: rail-berkeley/softlearning
Commit Name: a41f2ff4c1437f0b61e76265c31bdec71be0556f
Time: 2019-04-26
Author: hartikainen@berkeley.edu
File Name: softlearning/algorithms/sql.py
Class Name: SQL
Method Name: get_diagnostics