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


SaveOnDisk

Declaration: TRndForest.SaveOnDisk (FName: string; Binary: boolean): integer;
The method SaveOnDisk stores the trained random forest in the file specified by the parameter FName. The parameter Binary controls whether the random forest is stored in readable text format or in encrypted binary form. In general, the binary format should be used except for debugging purposes, as the binary format can be stored and read much faster (by an order of magnitude). The function returns the following error codes:
 0 ... everything is OK, the random forest has been stored
-1 ... the data cannot be stored (for unknown reasons)