stratifiedSplit(proportions:seed:featureColumns:labelColumn:recordingFileColumn:)
Generates a data table by splitting the data source into strata.
Declaration
func stratifiedSplit(proportions: [Double], seed: Int = timestampSeed(), featureColumns: [String], labelColumn: String, recordingFileColumn: String) throws -> MLDataTableParameters
- proportions:
An array of proportions, each in the range
[0.0, 1.0]. - seed:
A seed number for the random-number generator.
- featureColumns:
The names of the feature columns the method includes in the data table.
- labelColumn:
The name of the label column the methods stratifies.
- recordingFileColumn:
The name of the column with the data file names.
Return Value
A new MLDataTable instance.