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/createConsensusVoter.m
View on GitHubfunction Voter = createConsensusVoter(Method, Options)
%createConsensusVoter Factory function to create a ConsensusVoter.
%
% Voter = createConsensusVoter(Method) creates a consensus voter using
% the specified voting scheme with default parameters.
%
% Voter = createConsensusVoter(Method, Name=Value) passes additional
% configuration to the voter's constructor.
%
% Input:
% Method - (1,1) string, one of:
% "borda" — Borda count (positional scoring)
% "majority" — Majority vote (binary top-K)
% "rrf" — Reciprocal Rank Fusion
%
% Name-Value Arguments (passed to the corresponding class):
% For "borda":
% Weights - (1,:) double, per-method weights (empty = uniform)
%
% For "majority":
% TopK - double, features each method votes for (default: auto)
%
% For "rrf":
% K - double, ranking constant (default: 60)
%
% Output:
% Voter - ConsensusVoter subclass instance with rank() and select() methods
%
% Example:
% % Default Borda voter
% Voter = createConsensusVoter("borda");
%
% % RRF with custom constant
% Voter = createConsensusVoter("rrf", K=10);
%
% % Majority with fixed top-K
% Voter = createConsensusVoter("majority", TopK=5);
%
% % Weighted Borda (trust some methods more)
% Voter = createConsensusVoter("borda", Weights=[2 1 1 1]);
%
% % Then use uniformly:
% Rankings = {r1, r2, r3};
% [RankedIdx, Scores] = Voter.rank(Rankings, nFeatures);
% [Selected, Tbl] = Voter.select(Rankings, FeatureNames, 10);
%
% See also: ConsensusVoter, BordaVoter, MajorityVoter, RRFVoter
% Copyright 2026 The MathWorks, Inc.
arguments
Method (1,1) string {mustBeMember(Method, ["borda","majority","rrf"])}
Options.Weights (1,:) double = double.empty(1,0)
Options.TopK (1,1) double {mustBeNonnegative, mustBeInteger} = 0
Options.K (1,1) double {mustBePositive} = 60
end
switch Method
case "borda"
Voter = BordaVoter(Weights=Options.Weights);
case "majority"
Voter = MajorityVoter(TopK=Options.TopK);
case "rrf"
Voter = RRFVoter(K=Options.K);
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: 467k | 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: 319k | 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: 319k | 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: 319k | Updated | Claude CodeCodex | Verified | Install |