matlab-classify-tabular-data

Trains and compares MATLAB classifiers on tabular data with cross-validation and statistical significance tests.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-classify-tabular-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-classify-tabular-data
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/ai-and-statistics/matlab-classify-tabular-data
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-classify-tabular-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Choosing the right classifier for a tabular dataset usually means guessing among dozens of MATLAB functions and then wondering whether accuracy differences are real or noise. This Skill runs an end-to-end MATLAB workflow that cleans your data, selects suitable classifiers based on dataset characteristics, trains them, and uses statistical tests (McNemar, 5x2 cv, Friedman) to identify which models are genuinely equivalent in accuracy.

Core Features & Use Cases

  • Data-driven model selection: Analyzes your dataset (size, class balance, missing values, categorical features, sparsity) and picks appropriate classifiers such as trees, SVMs, ensembles, naive Bayes, and neural networks.
  • Rigorous evaluation: Supports 5-fold cross-validation or 70/30 holdout splits, with confidence intervals, pairwise p-value matrices, Bonferroni correction, and heatmap visualizations.
  • Imbalanced data handling: Offers RUSBoost and other imbalance-aware boosting models plus an optional uniform class prior.
  • Optional extras: Hyperparameter optimization via Bayesian optimization, boosting learning curves with resume training, saving trained models to .mat files, and exporting a self-contained retraining script.
  • Use Case: You have a CSV of patient measurements and a diagnosis column. Ask your agent to classify the data, and it will clean the table, train a dozen candidate models, and tell you which top-tier models are statistically indistinguishable so you can pick the simplest one.

Quick Start

Ask your AI agent to classify the tabular dataset in my CSV file and compare the accuracy of different MATLAB classifiers with cross-validation.

Frequently Asked Questions about matlab-classify-tabular-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare classifier accuracy in MATLAB?

Load your tabular predictors and categorical response, then let the skill train candidate classifiers and compare them with cross-validation or a holdout split. It runs pairwise statistical tests (testckfold or testcholdout) with Bonferroni correction to identify models whose accuracy differences are not significant.

How to choose the best classifier for a tabular dataset in MATLAB?

The skill computes dataset flags such as size, class ratio, missing values, sparsity, and categorical features, then dispatches to a curated model list for that data profile. You confirm the list, and models are trained and ranked by cross-validated accuracy with confidence intervals.

Does this skill handle imbalanced classification data?

Yes. When the class ratio exceeds the imbalance threshold, it substitutes imbalance-aware boosting models such as RUSBoost and asks whether to apply a uniform class prior. It also warns about extreme imbalance and can remove or merge tiny minority classes.

Can I use this skill for images, time series, or regression?

No. It only supports tabular predictors (numeric matrix or table) with a categorical response. For regression, image, sequence, or time-series data, or for training a specific neural network architecture, use a different skill such as matlab-train-network.

Does the skill support cost-sensitive learning or custom class priors?

No. Custom cost matrices and arbitrary class-prior vectors are explicitly unsupported because the statistical comparison helpers score misclassification rate, not expected cost. The only prior control offered is the built-in uniform-prior toggle for imbalanced data.

What MATLAB toolboxes are required to compare classifiers with this skill?

It requires MATLAB R2025a or later with the Statistics and Machine Learning Toolbox. The agent must also have access to the MATLAB MCP server tools evaluate_matlab_code and run_matlab_file to execute the workflow.