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/macroF1Score.m
View on GitHubfunction F1 = macroF1Score(TrueY, Scores, ClassNames)
%macroF1Score Macro-averaged F1 score via rocmetrics.
% F1 = macroF1Score(TrueY, Scores, ClassNames) computes macro-averaged
% F1 by taking the max F1 per class (across thresholds) from rocmetrics,
% then averaging across classes.
%
% Inputs:
% TrueY — categorical or numeric vector of true labels
% Scores — N-by-K matrix of posterior scores (from predict)
% ClassNames — 1-by-K or K-by-1 array of class names (from model.ClassNames)
%
% Output:
% F1 — scalar macro-averaged F1 score
% Copyright 2026 The MathWorks, Inc.
arguments
TrueY (:,1)
Scores (:,:) {mustBeFloat}
ClassNames
end
RocObj = rocmetrics(TrueY, Scores, ClassNames, AdditionalMetrics="f1score");
F1PerClass = groupsummary(RocObj.Metrics, "ClassName", "max", "F1Score");
F1 = mean(F1PerClass.max_F1Score, 'omitnan');
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 |
| 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 |