Skip to content

Commit

Permalink
Merge pull request #1 from Timothysit/patch-1
Browse files Browse the repository at this point in the history
Added required PCA import for cvPCA
  • Loading branch information
carsen-stringer authored Nov 16, 2023
2 parents e92a7e0 + 4f8489d commit d946f5a
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 d946f5a

Please sign in to comment.