Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIPALS returns nans #27

Open
sandcobainer opened this issue Dec 3, 2020 · 1 comment
Open

NIPALS returns nans #27

sandcobainer opened this issue Dec 3, 2020 · 1 comment

Comments

@sandcobainer
Copy link

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?

@maasencioh maasencioh assigned jwist and unassigned jwist Dec 3, 2020
@targos
Copy link
Member

targos commented Dec 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants