详尽的渠道/特征选择降低维度(Dimensionality reduction in exhaustive channel/feature selection)

编程入门 行业动态 更新时间:2024-10-10 03:33:31
详尽的渠道/特征选择降低维度(Dimensionality reduction in exhaustive channel/feature selection)

我的数据包括16channelsx128samplesx400trials。 我想在这个数据集中执行详尽的频道选择。 我应该在哪里应用PCA?

unsortedChannelIndices = [1:16] sortedChannelIndices = []; %Option 1 reducedData = PCA(data, classIndeces) for chIdx = 1:length(unsortedChannelIndices) for c=1:length(unsortedChannelIndices) thisChannel = unsortedChannelIndices(c) thisChannelSet = [sortedChannelIndices, thisChannel]; %Option 1 thisData = reducedData(thisChannelSet,:,:); %Option 2 thisData = PCA(data(thisChannelSet, classIndeces) thisPerformance(c) = eval_perf(thisData);%crossvalidation end [performance(chIdx),best] = max(thisPerformance); sortedChannelIndices = [sortedChannelIndices,unsortedChannelIndices(best)]; unsortedChannelIndices(best) = []; end

My data consist of 16channelsx128samplesx400trials. I wanna perform exhaustive channel selection in this dataset. Where should I apply PCA?

unsortedChannelIndices = [1:16] sortedChannelIndices = []; %Option 1 reducedData = PCA(data, classIndeces) for chIdx = 1:length(unsortedChannelIndices) for c=1:length(unsortedChannelIndices) thisChannel = unsortedChannelIndices(c) thisChannelSet = [sortedChannelIndices, thisChannel]; %Option 1 thisData = reducedData(thisChannelSet,:,:); %Option 2 thisData = PCA(data(thisChannelSet, classIndeces) thisPerformance(c) = eval_perf(thisData);%crossvalidation end [performance(chIdx),best] = max(thisPerformance); sortedChannelIndices = [sortedChannelIndices,unsortedChannelIndices(best)]; unsortedChannelIndices(best) = []; end

最满意答案

PCA或任何降维技术应与将要分析的数据一起应用。 如果我们评估对应于较少通道(例如1:4)的子集的性能,则应在该数据中应用任何降维技术(PCA(数据([1:4),:,:)。因此,选项2是正确的选择。

The PCA or any dimensionality reduction technique should be applied with the data that will be analyzed. If we wana evaluate the performance of the subset corresponding to less channels (eg 1:4), any dimensionality reduction technique should be applied in this data (PCA(data([1:4),:,:). Hence, Option 2 is the correct option.

更多推荐

本文发布于:2023-07-18 07:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1157111.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:维度   详尽   特征   渠道   Dimensionality

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!