Agent skill · Data & Analytics

matlab-classify-tabular-data

Use 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 neura

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-classify-tabular-data --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 44
SKILL.md size: 36 KB
Bundled scripts: none
Version: 1.0
Declared author: MathWorks
Path: skills-catalog/ai-and-statistics/matlab-classify-tabular-data/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Classifies 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. Triggered when the 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.

How it works

  • Step 1 loads the data and determines whether there is a separate test set; it defines XTrain/YTrain/XTest/YTest or X/Y for use.
  • Step 2 (Analyze and clean data) requires reading and following dataprep instructions from a referenced file, ensuring a flags struct and a preproc struct exist in the workspace as specified.
  • Step 3 (Choose evaluation strategy) uses dataset size information to recommend either a 70/30 holdout split or 5-fold cross-validation, and asks the user to choose (holdout or cv). If the user chooses holdout, a holdout split is created via a script; if cv is chosen, set to cross-validation.
  • Step 4 (Ask about interpretability) asks the user how important interpretability is, recording interpretability as 'high' or 'low' to steer model selection.
  • Step 5 (Select and define model templates) requires reading an external reference to determine allowed classifiers, uses a helper to build model definitions, and may involve an imbalanced-prior workflow if applicable. It assembles modelDefs with fields like name, template, cvFitFcn, fitFcn, fnName, hyperparameters, innerLearner_fnName, innerLearner_hyperparameters. Multiclass ECOC recipes appear twice (OVO and OVA). The workflow trains every entry and uses CV paths or holdout paths accordingly; it does not perform raw fit calls like fitc* directly in the specified step.

The skill relies on external references and helper scripts to construct and train models, perform evaluations, and compare results. It enforces constraints on allowed priors and excludes certain neural-network-centric workflows.

When to use it

  • You have a numeric matrix or a table of predictors with a categorical response and want to compare multiple classifiers.
  • You need cross-validation, a holdout evaluation, or hyperparameter optimization for classifiers, plus statistical tests to judge significant accuracy differences.

What it can touch

  • Inputs and outputs are manipulated through MATLAB code invoked via a MATLAB MCP server. The workflow uses predefined scripts and helper functions loaded from the skill path, and does not directly expose internal filenames in user-facing messages.

Caveats

  • The skill does not support custom class priors or cost matrices; it relies on a built-in uniform-prior toggle for imbalanced data when applicable. If custom priors or costs are required, it instructs using dedicated fitc* calls directly.
  • It requires reading external reference files for dataprep and classifier selections and relies on step-by-step prompts to gather user preferences (holdout vs cv, interpretability).
  • It will not output raw code until the appropriate references are read and the user selections are made; it emphasizes messaging results to the user rather than internal file names.
From the SKILL.md

# Compare Classification Models with Statistical Uncertainty Compare classifiers on the user's dataset and identify the top tier of models that are statistically equivalent in accuracy. This skill bundles the workflow in `references/` (step-by-step instructions and branch tables read on-demand) and `scripts/` (reusable computation and plotting helpers). Do not invoke files in `references/` as separate skills — they are only loaded via the `Read` tool when the corresponding step runs. See `references/README.md` for the layout and why the branch-table `.m` files live in `references/` instead of `scripts/`. ## When to Use - User wants to classify tabular data (matrix or table of predictors + categorical response). - User asks to compare multiple classifiers, pick the best model, or evaluate classifier accuracy. - User needs cross-validation, a holdout evaluation, or hyperparameter optimization for classifiers. - User needs statistical tests (McNemar, 5×2 cv, Friedman) to know which accuracy differences are significant. ## When NOT to Use - Response is continuous — use a regression skill instead. - Predictors are images, sequences, or time series — this skill assumes a numeric matrix o

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Running MATLAB
  4. Communication style while running this skill
  5. Before Writing Code
  6. Step 1: Load data
  7. Step 2: Analyze and clean data
  8. Step 3: Choose evaluation strategy
  9. Step 4: Ask about interpretability
  10. Step 5: Select and define model templates
  11. Sparse-branch NaiveBayesMN gate
  12. CV path (hasHoldout = false) — use the baked-in cvFitFcn
  13. Holdout path (hasHoldout = true)
  14. Step 6: Get baseline accuracy estimates
Ships with 24 files
  • manifest.yaml
  • references/README.md
  • references/branch_categorical.m
  • references/branch_many_missing.m
  • references/branch_regular.m
  • references/branch_sparse.m
  • references/branch_wide.m
  • references/classifier_branches.m
  • references/classifier_thresholds.m
  • references/dataprep.md
  • references/hpo.md
  • references/imbalanced_boosting.m
  • references/model_recipe.m
  • references/save-and-export.md
  • references/select-classifiers-imbalanced.md
  • references/select-classifiers.md
  • scripts/README.md
  • scripts/aggregate_nested_cv_loss.m
  • scripts/apply_preproc.m
  • scripts/build_model_definitions.m
  • scripts/compute_data_flags.m
  • scripts/compute_pairwise_pvalues_cv.m
  • scripts/compute_pairwise_pvalues_holdout.m
  • scripts/count_categorical_levels.p
first 24 of 44
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-classify-tabular-data skill do?

Use 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 neura

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-classify-tabular-data --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going