Skip to content

Commit

Permalink
Added required PCA import for cvPCA
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothysit authored Oct 23, 2023
1 parent e92a7e0 commit 4f8489d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions neuropop/dimensionality.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def scvPCA(A, B):

def cvPCA(X):
''' X is 2 x stimuli x neurons '''
from sklearn.decomposition import PCA
nr = X.shape[0]
pca = PCA(n_components=min(1024, X.shape[1])).fit(X[0])
#u = pca.components_.T
Expand Down

0 comments on commit 4f8489d

Please sign in to comment.