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

Principal Component Analysis compute function #38

Open
grigory93 opened this issue Apr 14, 2016 · 2 comments
Open

Principal Component Analysis compute function #38

grigory93 opened this issue Apr 14, 2016 · 2 comments
Assignees

Comments

@grigory93
Copy link
Contributor

grigory93 commented Apr 14, 2016

The function computePca would return prcomp-class list (see prcomp) after performing PCA in Aster on Aster table. The flow and implementation is similar to computeKmeans implementation.

@grigory93 grigory93 self-assigned this Apr 14, 2016
@grigory93
Copy link
Contributor Author

R function prcomp returns a list of class "prcomp" that contains:

  • sdev: the standard deviations of the principal components. Components are sorted by these values (which indicate imporance)
  • rotation: corresponds to what Aster PCA function computes
  • center: logical if centering was used
  • scale: logical if scaling was used
  • x: the value of the rotated data (we won't support it for now)

Compared to Aster implementation the following are missing parts that function computePca should offer:

  • return the list compatible with prcomp being both classes "prcomp" and "toapca"
  • just like prcomp (arguments center and scale) support centering and scaling (in any combination) using Aster scale functions (ScaleMap and Scale)
  • sdev values. I believe it's possible to calculate somehow - needs checking.

Please, approach this requirements rather critically and correct as appropriate.

@grigory93
Copy link
Contributor Author

Existing workflow implemented in computeKmeans can serve as a template for computePca

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

No branches or pull requests

2 participants