prtPreProcPls Partial least squares
PLS = prtPreProcPls creates a partial least-squares pre-processing
object.
PLS = prtPreProcPls('nComponents',N) constructs a
prtPreProcPLS object PLS with nComponents set to the value N.
A prtPreProcPls object has the following properites:
nComponents - The number of principle componenets
A prtPreProcPls object also inherits all properties and functions from
the prtAction class
Example:
dataSet = prtDataGenFeatureSelection; % Load a data set
pls = prtPreProcPls; % Create a prtPreProcPls Object
pls = pls.train(dataSet); % Train
dataSetNew = pls.run(dataSet); % Run
% Plot
plot(dataSetNew);
title('PLS Projected Data');