Skip to content

Commit 4f8489d

Browse files
authored
Added required PCA import for cvPCA
1 parent e92a7e0 commit 4f8489d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neuropop/dimensionality.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ def scvPCA(A, B):
124124

125125
def cvPCA(X):
126126
''' X is 2 x stimuli x neurons '''
127+
from sklearn.decomposition import PCA
127128
nr = X.shape[0]
128129
pca = PCA(n_components=min(1024, X.shape[1])).fit(X[0])
129130
#u = pca.components_.T

0 commit comments

Comments
 (0)