euroargodev / BlueCloud

Working space for BlueCloud demontrator 3 - Lops Task
0 stars 1 forks source link

PCA #2

Closed AndreaGarciaJuan closed 4 years ago

AndreaGarciaJuan commented 4 years ago

When using profiles with few number of points: z = np.arange(0.,-100,-10.), pyxpcm.fit rise an error during PCA calculations

gmaze commented 4 years ago

Can you give more information about the PCA error ?

I suspect this is because with z = np.arange(0.,-100,-10.), you only have 10 points, and thus, reducing the dimensions is not really necessary, So the PCA fails because it may ask for 12 PCA, while they are only 10 levels

So: increase the nb of points, or avoid dimensionality reduction, using the reduction=0 when you create the pcm.

AndreaGarciaJuan commented 4 years ago

ValueError: n_components=15 must be between 0 and min(n_samples, n_features)=10 with svd_solver='full' This is the error

gmaze commented 4 years ago

this is exactly my answer, not enough levels, useless reduction