---
title: "stratifiedSplit(proportions:seed:labelColumn:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlhandactionclassifier/datasource/stratifiedsplit(proportions:seed:labelcolumn:)"
---

# stratifiedSplit(proportions:seed:labelColumn:)

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

## Declaration

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

## Parameters

- `proportions`: An array of proportions, each in the range [0.0, 1.0].
- `seed`: A seed number for the random-number generator.
- `labelColumn`: The name of the column that you want to stratify.

## Return Value

Return Value A new data table.

## See Also

### Exporting a data source

- [labeledMedia()](createml/mlhandactionclassifier/datasource/labeledmedia().md)
- [videosWithAnnotations()](createml/mlhandactionclassifier/datasource/videoswithannotations().md)
- [keypointsWithAnnotations(targetFrameRate:)](createml/mlhandactionclassifier/datasource/keypointswithannotations(targetframerate:).md)
- [extractKeypoints(targetFrameRate:)](createml/mlhandactionclassifier/datasource/extractkeypoints(targetframerate:).md)
- [gatherAnnotatedFileNames()](createml/mlhandactionclassifier/datasource/gatherannotatedfilenames().md)
