Constructor for Partial Least Squares (PLS)
constructor options.
OptionallatentVectors?: numberNumber of latent vector to get (if the algorithm doesn't find a good model below the tolerance)
Optionalscale?: booleanrescale dataset using mean.
Optionaltolerance?: numbertolerance used to stop the algorithm.
for load purposes.
Returns the explained variance on training of the PLS model
the explained variance.
Predicts the behavior of the given dataset.
data to be predicted.
Export the current model to JSON.
Fits the model with the given data and predictions, in this function is calculated the following outputs:
T - Score matrix of X P - Loading matrix of X U - Score matrix of Y Q - Loading matrix of Y B - Matrix of regression coefficient W - Weight matrix of X
matrix of features.
matrix of predictions.
StaticloadLoad a PLS model from a JSON Object
the serialized model to load.
PLS