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/MajorityVoter.m
View on GitHubclassdef MajorityVoter < ConsensusVoter
%MajorityVoter Consensus ranking via majority vote.
%
% Each method's top-K features receive 1 vote. A feature's score is
% the number of methods that selected it. Features are ranked by vote count.
%
% This is a binary scheme — it ignores relative ranking within the top-K.
% Feature #1 and feature #K get the same credit from each method.
%
% Properties:
% TopK - (1,1) double. Number of features each method "votes for."
% Default: 0 (auto = ceil(nFeatures / 3)).
%
% Example:
% Voter = MajorityVoter(TopK=5);
% [RankedIdx, Scores] = Voter.rank({[3 1 2 5 4], [1 3 5 2 4]}, 6);
% % Scores = vote counts: how many methods put each feature in their top-5
%
% See also: ConsensusVoter, createConsensusVoter
% Copyright 2026 The MathWorks, Inc.
properties
%TopK Number of features each method votes for (0 = auto)
TopK (1,1) double {mustBeNonnegative, mustBeInteger} = 0
end
methods
function obj = MajorityVoter(Options)
arguments
Options.TopK (1,1) double {mustBeNonnegative, mustBeInteger} = 0
end
obj.TopK = Options.TopK;
end
function [RankedIdx, Scores] = rank(obj, Rankings, NumFeatures)
arguments
obj
Rankings (1,:) cell
NumFeatures (1,1) double {mustBePositive, mustBeInteger}
end
p = NumFeatures;
NumMethods = numel(Rankings);
Scores = zeros(p, 1);
CurrentTopK = obj.TopK;
if CurrentTopK == 0
CurrentTopK = ceil(p / 3);
end
CurrentTopK = min(CurrentTopK, p);
for m = 1:NumMethods
r = Rankings{m};
NumVote = min(CurrentTopK, numel(r));
Scores(r(1:NumVote)) = Scores(r(1:NumVote)) + 1;
end
[~, RankedIdx] = sort(Scores, 'descend');
RankedIdx = RankedIdx(:)';
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 |