Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Normalize data to zero mean and unit variance before dimension estimation #636

Merged
merged 11 commits into from
Feb 5, 2021
2 changes: 0 additions & 2 deletions tedana/decomposition/ma_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,7 @@ def ma_pca(data_nib, mask_nib, criteria='mdl'):
maskvec = np.reshape(mask_nib, Nx * Ny * Nz, order='F')
data_non_normalized = data_nib_V[maskvec == 1, :]
scaler = StandardScaler(with_mean=True, with_std=True)
# TODO: determine if tedana is already normalizing before this
data = scaler.fit_transform(data_non_normalized) # This was X_sc
data = data_non_normalized

LGR.info('Performing SVD on original OC data...')
V, EigenValues = _icatb_svd(data, Nt)
Expand Down