<!--
{
  "availability" : [
    "iOS: 15.0.0 - 17.0.0",
    "iPadOS: 15.0.0 - 17.0.0",
    "macCatalyst: 15.0.0 - 17.0.0",
    "macOS: 12.0.0 - 14.0.0",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLHandPoseClassifier/DataSource/stratifiedSplit(proportions:seed:labelColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML20MLHandPoseClassifierV10DataSourceO15stratifiedSplit11proportions4seed11labelColumnAA11MLDataTableVSaySdG_SiSStKF"
  },
  "title" : "stratifiedSplit(proportions:seed:labelColumn:)"
}
-->

# stratifiedSplit(proportions:seed:labelColumn:)

Generates a data table by splitting the data source into strata.

```
func stratifiedSplit(proportions: [Double], seed: Int = timestampSeed(), labelColumn: String) throws -> MLDataTable
```

## Discussion

- 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)