Matlab Pls Toolbox
% Build PLS model with 5 latent variables and cross-validation (Venetian blinds) model = pls(X_obj, Y_obj, 5, 'crossval', 'venetian blinds', 'cvfolds', 10);
% Convert class labels to a dummy matrix class_labels = 'Good'; 'Good'; 'Bad'; 'Bad'; % Example Y_dummy = dummyvar(categorical(class_labels)); matlab pls toolbox
: Locally Weighted Regression, PARAFAC, N-way PLS, and Tucker models. % Build PLS model with 5 latent variables
% Build PLS model with 5 latent variables and cross-validation (Venetian blinds) model = pls(X_obj, Y_obj, 5, 'crossval', 'venetian blinds', 'cvfolds', 10);
% Convert class labels to a dummy matrix class_labels = 'Good'; 'Good'; 'Bad'; 'Bad'; % Example Y_dummy = dummyvar(categorical(class_labels));
: Locally Weighted Regression, PARAFAC, N-way PLS, and Tucker models.