pca icon indicating copy to clipboard operation
pca copied to clipboard

NIPALS returns nans

Open sandcobainer opened this issue 4 years ago • 1 comments

From the documentation, I understand specifying the nComponents only works for the options.method = 'NIPALS'.

However

options.method='NIPALS' 
options.nCompNIPALS = 2

pca = new PCA(dataset, options)
embedding = pca.predict(dataset, options)

always returns arrays of NaNs. [NaN,NaN]. I've tried it with 'SVD' and there are no NaNs, however the other methods don't support nComponents. So how do you use this for dimensionality reduction?

sandcobainer avatar Dec 03 '20 04:12 sandcobainer

Hello, do you have an example dataset that shows the issue?

targos avatar Dec 03 '20 10:12 targos