TrnData

Declaration: TRndForest.TrnData: TIlabTrnDataSet;
The property TrnData allows to access the training data of the random forest. See the section on TIlabTrnDataSet for a detailed description of the corresponding methods and properties.

Hint 1: Please note that the training data is not automatically loaded when loading a stored random forest. Without explicitly loading the training data only the class definitions (ClassNames and ClIDs) are loaded. In order to load the entire training data, you have to use the method LoadTrnData after LoadModel. The file name of the training data is available in the property TrnDataFName.

Hint 2: Please note that the method LoadTrnData does the same as TrnData.Load except for additional error codes. Thus you might want to use LoadTrnData for loading training data from a file.