How to apply z-score?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello
Should I apply z-score (to get zero mean and unit variance) on feature vectors (columns) or data points (rows)? I'm speaking about features in a machine learning context.
Second, how can I do this z-score thing in Matlab?
Thank your very much for the answers beforehand.
0 件のコメント
採用された回答
Walter Roberson
2015 年 5 月 27 日
編集済み: Walter Roberson
2015 年 5 月 27 日
You usually work feature by feature.
centered = [A,ones(size(A,1),1)] * [eye(size(A,2));-mean(A)]);
s_and_c = centered * diag(1./std(centered));
(That took entirely too long to work out in terms of matrix algebra! Perhaps this time I will be able to remember for future ;-))
5 件のコメント
Walter Roberson
2015 年 5 月 29 日
I think you should be doing it before you run PCA, but I do not remember. SVD never was one of my strong points :(
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!