Scaling sparse data for PCA
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.