<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLObjectDetector/ModelParameters-swift.struct/ValidationData/split(strategy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLObjectDetectorV15ModelParametersV14ValidationDataO5splityAgA15MLSplitStrategyO_tcAGmF"
  },
  "title" : "MLObjectDetector.ModelParameters.ValidationData.split(strategy:)"
}
-->

# MLObjectDetector.ModelParameters.ValidationData.split(strategy:)

A validation dataset Create ML derives by randomly selecting a portion of the object detector’s training
dataset using the split strategy.

```
case split(strategy: MLSplitStrategy)
```

## Parameters

`strategy`

An [`MLSplitStrategy`](/documentation/CreateML/MLSplitStrategy) instance the enumeration case uses to select a portion of the object
detector’s training dataset as its associated value.

---

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)