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


LoadFromDisk

Declaration: TRndForest.LoadFromDisk (FName: string): integer;
The method LoadFromDisk reads the file specified by FName and loads the random forest class with a trained classifier.

The function returns the following error codes:

 0 ... everything is OK, the random forest has been loaded
-1 ... cannot find or read the file
-2 ... the specified file does not contain a valid random forest
Please note that in the case of any error the random forest instance remains in an undefined state.

Hint 1: Please note that binary classifier files load much faster than text classifier files (see SaveOnDisk for more).