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

Scores #23

Open
paolaguarasci opened this issue Oct 25, 2019 · 1 comment
Open

Scores #23

paolaguarasci opened this issue Oct 25, 2019 · 1 comment

Comments

@paolaguarasci
Copy link

A getScores() method would be useful.
To do this I used:

let scores = pca.predict(dataset)

I made several attempts before being able to get what I needed (the scores) but I'm not a statistician, it's true. Even a reference to the scores also in the documentation can help those who are not in the field, like me.

@leeleavitt
Copy link

I'd also like to add. How do i get the principal components?

The U matrix produces the principal directions. From there do i simply, first create the PCA space,

genePCA = new ML.PCA(geneMat)

Then compute the principal components like this?

genePCA.predict(geneMat)

Also, once I've computed this, is each Float64Array a row or a column?

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

2 participants