www.gusucode.com > stats 源码程序 matlab案例代码 > stats/EsimtateThekfoldEdgeOfAClassifierExample.m
%% Esimtate the _k_-fold Edge of a Classifier % Compute the _k_-fold edge for a model trained on Fisher's iris data. %% % Load Fisher's iris data set. % Copyright 2015 The MathWorks, Inc. load fisheriris %% % Train a classification tree classifier. tree = fitctree(meas,species); %% % Cross validate the classifier using 10-fold cross validation. cvtree = crossval(tree); %% % Compute the _k_-fold edge. edge = kfoldEdge(cvtree)