-
-
Save stevenvo/620e5f47b68f8282b7c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stevens-MBP:src stevenvo$ python recognize_faces.py | |
../data/training/01-Tracy-Cropped | |
../data/training/02-Trish-Cropped | |
../data/training/03-Steven-Cropped | |
Traceback (most recent call last): | |
File "recognize_faces.py", line 51, in <module> | |
generate_eigenfaces() | |
File "recognize_faces.py", line 45, in generate_eigenfaces | |
compute_pca(X_train, y_train) | |
File "recognize_faces.py", line 37, in compute_pca | |
pca = RandomizedPCA(n_components, whiten=True).fit(X_train) | |
File "/Users/stevenvo/anaconda/lib/python2.7/site-packages/sklearn/decomposition/pca.py", line 567, in fit | |
self._fit(check_array(X)) | |
File "/Users/stevenvo/anaconda/lib/python2.7/site-packages/sklearn/utils/validation.py", line 344, in check_array | |
array = np.array(array, dtype=dtype, order=order, copy=copy) | |
ValueError: setting an array element with a sequence. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment