<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLSplitStrategy/fixed(ratio:seed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML15MLSplitStrategyO5fixedyACSd_SiSgtcACmF"
  },
  "title" : "MLSplitStrategy.fixed(ratio:seed:)"
}
-->

# MLSplitStrategy.fixed(ratio:seed:)

Create ML uses a portion of your training dataset to create a validation dataset based on the ratio.

```
case fixed(ratio: Double, seed: Int?)
```

## Discussion

The ratio is a value in the range `[0.0, 1.0]` that determines how much of the training data to use for
validation. The seed value can be used to get consistent results across invocations. If seed is nil the split
will be randomized on every invocation.

---

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)