4.3.2Creates new OPLS (orthogonal partial latent structures) from features and labels.
(Array)
	    matrix containing data (X).
          (Array)
	    1D Array containing metadata (Y).
          (Object
            = {})
	    
          | Name | Description | 
|---|---|
options.center boolean
  
    (default true)
   | 
  should the data be centered (subtract the mean). | 
options.scale boolean
  
    (default true)
   | 
  should the data be scaled (divide by the standard deviation). | 
options.cvFolds Array
  
    (default [])
   | 
  Allows to provide folds as array of objects with the arrays trainIndex and testIndex as properties. | 
options.nbFolds number
  
    (default 7)
   | 
  Allows to generate the defined number of folds with the training and test set choosen randomly from the data set. | 
(any)
	    dataset matrix object
          (any)
	    labels matrix object
          (any)
	    train and test index (output from getFold())
          Predict scores for new data
(Matrix)
	    a matrix containing new data
          Object:
        predictions
      
    
  
  
  
  
  
  
  
  
Predict scores for new data
(Matrix)
	    a matrix containing new data
          Object:
        predictions
      
    
  
  
  
  
  
  
  
  
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
OPLS loop
((Array | Matrix))
	    matrix with features
          ((Array | Matrix))
	    an array of labels (dependent variable)
          (Object
            = {})
	    an object with options
          Object:
        an object with model (filteredX: err,
loadingsXOrtho: pOrtho,
scoresXOrtho: tOrtho,
weightsXOrtho: wOrtho,
weightsPred: w,
loadingsXpred: p,
scoresXpred: t,
loadingsY:)
      
    
  
  
  
  
  
  
  
  
Get total sum of square
(Array)
	    an array
          Number:
        the sum of the squares