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/BordaVoter.m
View on GitHubclassdef BordaVoter < ConsensusVoter
%BordaVoter Consensus ranking via Borda count.
%
% Feature at rank k (out of N ranked by that method) receives N-k+1 points.
% Unranked features receive 0 points. Scores are summed across all methods.
%
% Borda count favors features that rank consistently high across methods.
% A feature ranked #2 by all 5 methods will outscore one ranked #1 by 2
% methods and unranked by the other 3.
%
% Properties:
% Weights - (1,:) double. Per-method weights. Must have one element per
% ranking passed to rank(). If not set, all methods are
% weighted equally.
%
% Example:
% Voter = BordaVoter();
% [RankedIdx, Scores] = Voter.rank({[3 1 2], [1 3 2]}, 3);
%
% % Weighted: trust method 2 more
% Voter = BordaVoter(Weights=[1 2 1]);
%
% See also: ConsensusVoter, createConsensusVoter
% Copyright 2026 The MathWorks, Inc.
properties
%Weights Per-method weights (empty = uniform)
Weights (1,:) double = double.empty(1,0)
end
methods
function obj = BordaVoter(Options)
arguments
Options.Weights (1,:) double = double.empty(1,0)
end
obj.Weights = Options.Weights;
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);
% Determine weights
if isempty(obj.Weights)
W = ones(1, NumMethods);
else
W = obj.Weights;
assert(numel(W) == NumMethods, ...
'BordaVoter:weightMismatch', ...
'Weights length (%d) must match number of rankings (%d).', ...
numel(W), NumMethods);
end
for m = 1:NumMethods
r = Rankings{m};
NumRanked = numel(r);
for k = 1:NumRanked
Scores(r(k)) = Scores(r(k)) + W(m) * (NumRanked - k + 1);
end
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: 470k | 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: 322k | 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: 322k | 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: 322k | Updated | Claude CodeCodex | Verified | Install |