Declaration: TIlabTrnDataSet.Split (Pct: integer; FName1, FName2: string): integer;
The function Split splits the dataset into two subsets and stores them on disk (parameters FName1 and FName2). The subsets contain Pct percent of each data class in file FName1 and (1-pct) percent of each data class in file FName2.

Please note that any existing subset files are overwritten by this method.

The function returns the following error codes:

 0 ... everything is OK
-1 ... invalid Pct parameter (valid range from 1 to 99)
-2 ... at least one of the classes is too small to achieve a proper percentage

Last Update: 2020-Jan-04