特徴行列 (行 = 観察、列 = 特徴) があるとします。分類問題に最適な機能を見つけたいと考えています。
私がしていることは
%feature matrix
X=rand(10)
%find the correlation matrix of X
r = corr(X)
%sum the r coefficients over the columns
%(I know that it's not the best way to do this) :)
for i=1:size(r,2)
vectorsum(i) = sum(r(:,i));
end
%find the feature that is less correlated with the others
bestfeature = min(vectorsum);
それが理にかなっているのかどうかは完全にはわかりません....しかし、選択された機能は他の9つとの相関が最も低いはずです...どう思いますか?