r [Dimensionality Reduction]用于执行PCA,SVD,聚类等的代码...
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了r [Dimensionality Reduction]用于执行PCA,SVD,聚类等的代码...相关的知识,希望对你有一定的参考价值。
# Calculate top 50 expression PCs
# See: http://genomicsclass.github.io/book/pages/mds.html
s <- svd(datExpr-rowMeans(datExpr))
max_pc = 50
pc = matrix(NA, nrow=ncol(datExpr),ncol=max_pc)
for(i in 1:max_pc) pc[,i] = s$d[i]*s$v[,i]
# Scree Plot
plot(s$d[1:max_pc]^2/sum(s$d^2))
以上是关于r [Dimensionality Reduction]用于执行PCA,SVD,聚类等的代码...的主要内容,如果未能解决你的问题,请参考以下文章
Definite dimensionality
Stanford机器学习笔记-10. 降维(Dimensionality Reduction)
dimensionality reduction动机---data compression
机器学习 --- 降维(Dimensionality Reduction)
Curse of Dimensionality
数据降维(Dimensionality reduction)