www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ComputeEstimationLossForNCAModelExample.m
%% Compute Estimation Loss for NCA Model %% % Load the sample data. load ionosphere %% % The data set has 34 continuous predictors. The response variable is the % radar returns labelled as b (bad) or g (good). %% % Perform neighborhood component analysis (NCA) to detect the important % predictors in correctly classifying the radar returns with default % settings. mdl = fscnca(X,Y,'Verbose',1); %% % Compute prediction loss for the NCA model. L = loss(mdl,X,Y)