The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



SaveModelCoefficients


Unit: SDL_statis
Class: TPLSModel
Declaration: procedure SaveModelCoefficients (FileName, Comment: string);

The method SaveModelCoefficients stores the calculated PLS model in a binary file with the name FileName for later application to unknown data. The parameter Comment can be used to identify the stored model or to add a short description of the model.

Please note that SaveModelCoefficients should be called only (immediately) after a model has been calculated as some routines of the TPLSModel class may destroy part of the information needed to store the model.

The following information is stored in the model file:

Comment The string contained in the parameter Comment
No. of Factors The number of factors used when creating the model
Predictor Variables For each predictor variable the following items are stored:
  • the name of the variable (property NamePredictor)
  • the minimum and maximum value
  • the mean and the standard deviation
Response Variables For each response variable the following items are stored:
  • the name of the variable (property NameResponse)
  • the minimum and maximum value
  • the mean and the standard deviation
Coefficient Matrix The regression coefficients computed during the training
of the model (property RegCoeff)

Hint: Before saving a model it is recommended to assign the correct predictor and response variable names to the properties NamePredictor and NameResponse. SaveModelCoefficients stores the names of the variables along the model parameters. The stored names can then be used to ensure the proper application of a model to unknown data by checking whether the variable names of the model and the variable names of the unknown data match.



Last Update: 2015-Mai-14