stratifiedSplit(proportions:seed:labelColumn:)
Generates a data table by splitting the data source into strata.
Declaration
func stratifiedSplit(proportions: [Double], seed: Int = timestampSeed(), labelColumn: String) throws -> MLDataTableDiscussion
proportions: An array of stratum proportions, each in the range
[0.0, 1.0].seed: A seed number for the random-number generator.
labelColumn: The name of the column or category the method uses to stratify the contents of the data source.