Decision Trees and Predictive Models with cross-validation and ROC analysis plot

This code implements a classification tree and plots the ROC curves for each target class

Download
Download

You are now following this Submission

Cite As

Andrea Padoan (2026). Decision Trees and Predictive Models with cross-validation and ROC analysis plot (https://www.mathworks.com/matlabcentral/fileexchange/26326-decision-trees-and-predictive-models-with-cross-validation-and-roc-analysis-plot), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.9.0

Now, the overall classification rate is estimates by:
1) 10 fold crossvalidation
2) Leave one out crossvalidation (LOOCV)
that give more realistic results.

Download
1.4.0

Added Import from Matlab File.
Added some comments in file.
Added consistency check for outcome variable.

Download
1.2.0

Added Import directly from matlab file
Added check for NaN in outcome variable
Added check for consistency in outcome variable
Added some comments in files.

Download
1.1.0

I've changed some comments and screenshot.

Download
1.0.0

Download