---
title: MLSplitStrategy
framework: createml
role: symbol
role_heading: Enumeration
path: createml/mlsplitstrategy
---

# MLSplitStrategy

Data partitioning approaches, typically for creating a validation dataset from a training dataset.

## Declaration

```swift
enum MLSplitStrategy
```

## Topics

### Partitioning data

- [MLSplitStrategy.automatic](createml/mlsplitstrategy/automatic.md)
- [MLSplitStrategy.fixed(ratio:seed:)](createml/mlsplitstrategy/fixed(ratio:seed:).md)
- [resolve(count:)](createml/mlsplitstrategy/resolve(count:).md)

### Creating a random seed

- [timestampSeed()](createml/timestampseed().md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting types

- [MLCreateError](createml/mlcreateerror.md)
- [MLModelMetadata](createml/mlmodelmetadata.md)
