0
$\begingroup$

Not sure how I should interpret the scaling. Is it correct to convert the sparse matrix to a dense matrix by padding with 0's and scale normally?

$\endgroup$
  • $\begingroup$ What are you trying to do? $\endgroup$ – mathreadler Mar 13 '19 at 7:13
0
$\begingroup$

Assuming you are doing feature scaling: method to limit the range of variables so that they can be compared on common grounds. I'm not sure about what you are looking here. If the matrix is small, you can densify it with X.toarray(). If the matrix is large, then this will probably blow your RAM. Remember that: PCA(X) is SVD(X-mean(X)). Even If X is a sparse matrix, X-mean(X) is always a dense matrix.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.