matlab/matlab-agentic-toolkit / skills-catalog/ai-and-statistics/matlab-classify-tabular-data
matlab-classify-tabular-data
UnverifiedUse this skill to classify tabular data end-to-end in MATLAB — load a dataset, prepare and clean it, select promising classifiers, train them, and compare accuracies with cross-validation, holdout, or hyperparameter optimization plus statistical tests. TRIGGER when: user asks to classify tabular data, pick classifiers for a dataset, compare classifier accuracy, run cross-validation or a holdout evaluation, or find the best model with statistical uncertainty. DO NOT TRIGGER when: user has non-tabular inputs (images, sequences, time series), wants a regression model, is training a specific neural network architecture (use matlab-train-network), or wants cost-sensitive learning or an arbitrary class-prior vector (this skill only supports the built-in uniform-prior toggle for imbalanced data).
scripts/helpers/resolve_recipe.m
View on GitHubfunction r = resolve_recipe(r, flags)
% RESOLVE_RECIPE Replace function-valued args with concrete scalars.
%
% R = RESOLVE_RECIPE(R, FLAGS) walks R.args and R.innerLearner_args,
% replacing every function-handle value V with V(FLAGS). Returns the
% fully-static recipe. After resolution the "args values are plain
% scalars" invariant holds and downstream code (template
% construction, manifest matching) can treat args uniformly.
%
% FLAGS is the data-characteristic struct produced by
% compute_data_flags — it must carry every field the handles refer
% to (typically nClasses, N, D, isBinary, isBig, isHighD, ...).
%
% Idempotent: resolving an already-resolved recipe is a no-op.
r.args = resolve_struct(r.args, flags);
r.innerLearner_args = resolve_struct(r.innerLearner_args, flags);
end
function s = resolve_struct(s, flags)
fns = fieldnames(s);
for k = 1:numel(fns)
v = s.(fns{k});
if isa(v, 'function_handle')
s.(fns{k}) = v(flags);
end
end
end
% Copyright 2026 The MathWorks, Inc.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |