matlab/matlab-agentic-toolkit / skills-catalog/ai-and-statistics/matlab-engineer-tabular-features
matlab-engineer-tabular-features
UnverifiedUse when engineering or selecting the best features for single-response classification or regression in MATLAB, whatever the data's modality — for non-tabular data it routes extraction to a domain skill, then selects, assesses, and delivers on the resulting table. Not for multi-response problems, model training, or raw data acquisition.
scripts/ConsensusVoter.m
View on GitHubclassdef (Abstract) ConsensusVoter
%ConsensusVoter Abstract base class for consensus feature ranking.
%
% Subclasses implement the rank method using different voting schemes.
% Use createConsensusVoter() factory to instantiate the appropriate subclass.
%
% See also: createConsensusVoter, BordaVoter, MajorityVoter, RRFVoter
% Copyright 2026 The MathWorks, Inc.
methods (Abstract)
%rank Produce a consensus ranking from multiple method rankings.
%
% [RankedIdx, Scores] = Voter.rank(Rankings, NumFeatures)
%
% Inputs:
% Rankings - (1,:) cell array of (1,:) double index vectors.
% Each cell is a ranking from one method (best first).
% NumFeatures - (1,1) double, total number of features (p).
%
% Outputs:
% RankedIdx - (1,p) double, feature indices ordered by consensus
% score (highest score first).
% Scores - (p,1) double, raw consensus score per feature.
[RankedIdx, Scores] = rank(obj, Rankings, NumFeatures)
end
methods
function [SelectedFeatures, VoteTable] = select(obj, Rankings, FeatureNames, NumSelect)
%select Rank features then select the top N.
%
% [Selected, Tbl] = Voter.select(Rankings, FeatureNames, NumSelect)
%
% Inputs:
% Rankings - (1,:) cell array of ranking vectors
% FeatureNames - (1,p) string array of feature names
% NumSelect - (1,1) double, number of features to keep
%
% Outputs:
% SelectedFeatures - (1,:) string of selected feature names
% VoteTable - table: Feature, Score, Rank, Selected
arguments
obj
Rankings (1,:) cell
FeatureNames (1,:) string
NumSelect (1,1) double {mustBePositive, mustBeInteger}
end
p = numel(FeatureNames);
NumSelect = min(NumSelect, p);
[RankedIdx, Scores] = obj.rank(Rankings, p);
SelectedMask = false(p, 1);
SelectedMask(RankedIdx(1:NumSelect)) = true;
SelectedFeatures = FeatureNames(SelectedMask);
ConsensusRank = zeros(p, 1);
ConsensusRank(RankedIdx) = 1:p;
VoteTable = table(FeatureNames', Scores, ConsensusRank, SelectedMask, ...
VariableNames={'Feature', 'Score', 'Rank', 'Selected'});
VoteTable = sortrows(VoteTable, 'Rank', 'ascend');
end
end
end
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 469k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |