Skip to content

Commit 3dd5ff3

Browse files
committed
forgot to return value...
1 parent ffc65f3 commit 3dd5ff3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ModelDevelopment/preprocessing.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,7 @@ def feature_extract(x):
383383
plt.tight_layout()
384384
plt.show()'''
385385

386-
#TODO: project data onto eigenspace
387-
388-
# print("eigenvectors:", eigvecs.shape)
389-
# print("eigenvalues:", eigvals.shape)
386+
return pcs, evs
390387

391388
def randomized_svd(A, k, n_oversamples=10, n_iter=5, random_state=None):
392389
m, n = A.shape
@@ -719,7 +716,7 @@ def preprocess(directory_path: str, actions: Dict[str, Action], should_visualize
719716
# plt.show()
720717
# =======
721718

722-
feature_extract(x)
719+
x_prime, components = feature_extract(x)
723720

724721
# stack the epochs together for PCA
725722
if should_visualize:

0 commit comments

Comments
 (0)