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/RRFVoter.m
View on GitHubclassdef RRFVoter < ConsensusVoter
%RRFVoter Consensus ranking via Reciprocal Rank Fusion.
%
% Score = sum(1 / (k + rank_i)) across all methods.
%
% Standard in information retrieval (Cormack et al., 2009). The reciprocal
% dampens large rank differences: a feature ranked 50th vs 100th barely
% changes the score. This makes RRF robust to outlier rankings from
% individual methods.
%
% The constant k controls how much top ranks dominate:
% - Small k (e.g., 1): top ranks dominate heavily
% - Large k (e.g., 60): more uniform weighting across ranks
% - k=60 is the standard value from the original paper
%
% Properties:
% K - (1,1) double. The ranking constant. Default: 60.
%
% Example:
% Voter = RRFVoter(K=60);
% [RankedIdx, Scores] = Voter.rank({[3 1 2], [1 3 2]}, 3);
%
% % More emphasis on top ranks:
% Voter = RRFVoter(K=10);
%
% See also: ConsensusVoter, createConsensusVoter
% Copyright 2026 The MathWorks, Inc.
properties
%K Ranking constant in 1/(K + rank). Higher = more uniform weighting.
K (1,1) double {mustBePositive} = 60
end
methods
function obj = RRFVoter(Options)
arguments
Options.K (1,1) double {mustBePositive} = 60
end
obj.K = Options.K;
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);
for m = 1:NumMethods
r = Rankings{m};
for k = 1:numel(r)
Scores(r(k)) = Scores(r(k)) + 1 / (obj.K + k);
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: 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 |