The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



PrepareSplitCounts


Unit: SDL_datatable
Class: TDataTable
Declaration: function PrepareSplitCounts (SplitMode: TDataSetSplitMode; SplitSize: integer; CreateAllPairs: boolean; var DataCnts: TIntArray): integer;

The method PrepareSplitCounts calculates the sizes of the datasets created by the method SplitDataSet without actually generating the datasets. PrepareSplitCounts can be used to dispay, for example, a list of the resulting datasets before the split of the dataset is carried out.

The paramter SplitMode controls the type of splitting (splitColumns, splitRows, splitTstTrn), the SplitSize parameter defines the number of intended splits (or, if the SplitMode is splitTstTrn the size of the test set). The parameter CreateAllPairs is only evaluated if the SplitMode is splitTstTrn.

The resulting file sizes (in terms of row or columns of the split datasets) are returned in the array DataCnts.



Last Update: 2023-Dec-14