DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


SaveCvdLog

Declaration: FrmPLS.SaveCvdLog (FName: string): integer;
Saves a log data of the cross validation to the file defined by the parameter FName (full path). The file extension controls the data format of the generated image (CSV, ASC and TXT are supported, all unrecognized extensions result in a TXT format file).

Each line of the log file reports the results of a cross validation step and contains the following columns:

NFact ... the number of factors used
Repeat ... the index of the repetition
Class ... the index of the target variable
Time ... the time in seconds
RMS(EP) ... the root mean square error of prediction
TP Rate ... the true positive rate
FP Rate ... the false positive rate
MCC ... the Matthews correlation coefficient

The function returns the following error codes:

 0 .... everything OK
-1 .... the filename FName is empty

Hint: Please note that the CSV separator can be set in the preferences dialog.