You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Performing PCA Transform.......
Traceback (most recent call last):
File "EmoDetect.py", line 114, in
Predict_Emotion(filename)
File "EmoDetect.py", line 63, in Predict_Emotion
pca_features=pca.transform(features)
File "/usr/local/lib/python2.7/dist-packages/sklearn/decomposition/base.py", line 128, in transform
X = check_array(X)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 410, in check_array
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[ 1.01314577 1.0087923 5.41773198 ..., 0.88240298 4.17091737
1.19806876].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
The text was updated successfully, but these errors were encountered:
Performing PCA Transform.......
Traceback (most recent call last):
File "EmoDetect.py", line 114, in
Predict_Emotion(filename)
File "EmoDetect.py", line 63, in Predict_Emotion
pca_features=pca.transform(features)
File "/usr/local/lib/python2.7/dist-packages/sklearn/decomposition/base.py", line 128, in transform
X = check_array(X)
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/validation.py", line 410, in check_array
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[ 1.01314577 1.0087923 5.41773198 ..., 0.88240298 4.17091737
1.19806876].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
The text was updated successfully, but these errors were encountered: