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....



OnModelApplyRequest


Unit: SDL_statis
Class: TCrossValidator
Declaration: property OnModelApplyRequest: TOnModelApplyRequestEvent;
{ TOnModelApplyRequestEvent = procedure (Sender: TObject; PercentDone: integer; Predictors: TDoubleArray; var Response, Thresh: TDoubleArray) of object; }

The OnModelApplyRequest event handler is called during cross validation whenever the current model (i.e. the model created in the last call of OnModelCreateRequest) has to be applied to a particular test object. The open array Predictors contains the independent variables of the test object. The calculated response(s) of the model has to be returned in the open array Response. If the model to be cross validated is a classifier the classification thresholds have to be returned in the variable array Thresh (set the thresholds to zero, if not used).

The parameter PercentDone reflects the progress of the cross validation (values between 0 and 100).


Last Update: 2023-Dec-08