Posts by Christian Gomes • 11 points
1 post
-
1
votes1
answer65
viewsA: PCA method for Feature Selection - How do I resolve the raise Exception("Data must be 1-dimensional" error)?
The attribute Components_ of sklearn.decomposition.PCA returns an array with Shape equal to (n_components, n_features). In your case (58, x.Shape[0]). You are using this array to try to create an…