Skip to content

NIPALS returns nans #27

@sandcobainer

Description

@sandcobainer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions