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]
pcas.append(subject_data)
del subject_data
if self.kurtosis_thr is None:
After Change
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: