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/model_catalog/branch_wide.m
View on GitHub% branch_wide.m
%
% Branch 3: wide data (D >= N, numeric, no many-missing, no
% categorical, not sparse). Linear models dominate when features
% outnumber observations.
%
% Appends one entry to BRANCHES. Requires THRESHOLDS.
WIDE_MODELS = [ ...
model_recipe('LinearSVM', 'fitclinear', ...
struct('Learner','svm','Solver','lbfgs'), ...
'Interp', {{'low','high'}}, ...
'MulticlassECOC', true) ...
model_recipe('LinearSVMWithShrinkage', 'fitclinear', ...
struct('Learner','svm','Solver','sparsa'), ...
'Interp', {{'low','high'}}, ...
'MulticlassECOC', true) ...
model_recipe('LinearDiscriminant', 'fitcdiscr', ...
struct('DiscrimType','linear','FillCoeffs','off','SaveMemory','on'), ...
'Interp', {{'low','high'}}) ...
...
model_recipe('LinearStandardizedSVM', 'fitcsvm', ...
struct('KernelFunction','linear','Standardize',true), ...
'Interp', {{'low','high'}}, ...
'MulticlassECOC', true, ...
'Condition', @(f) f.N <= THRESHOLDS.standardized_svm_N) ...
...
model_recipe('LogisticRegression', 'fitclinear', ...
struct('Learner','logistic','Solver','lbfgs'), ...
'Interp', {{'low','high'}}, ...
'MulticlassECOC', true) ...
model_recipe('LogisticRegressionWithShrinkage', 'fitclinear', ...
struct('Learner','logistic','Solver','sparsa'), ...
'Interp', {{'low','high'}}, ...
'MulticlassECOC', true) ...
...
model_recipe('KNN', 'fitcknn', ...
struct('Distance','cosine','NumNeighbors',1), ...
'Interp', {{'low'}}, ...
'Condition', @(f) f.N <= THRESHOLDS.wide_knn_N && f.smallestClassSize >= THRESHOLDS.wide_knn_smallest_class) ...
];
BRANCHES(end+1) = struct( ...
'id', 3, ...
'name', 'wide', ...
'entry', @(f) f.isWide && ~f.hasManyMissing && ~f.hasCategorical && ~f.isSparse, ...
'models', {WIDE_MODELS});
clear WIDE_MODELS
% 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: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | 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 |