<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLWordTagger/ModelParameters-swift.struct/validation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML12MLWordTaggerV15ModelParametersV10validationAE14ValidationDataOvp"
  },
  "title" : "validation"
}
-->

# validation

The validation dataset.

```
var validation: MLWordTagger.ModelParameters.ValidationData { get set }
```

## Discussion

The default value is an
[`MLWordTagger.ModelParameters.ValidationData.split(strategy:)`](/documentation/CreateML/MLWordTagger/ModelParameters-swift.struct/ValidationData-swift.enum/split(strategy:))
instance with the [`MLSplitStrategy.automatic`](/documentation/CreateML/MLSplitStrategy/automatic) split strategy``,
which automatically generates the validation dataset by partitioning up to 10% of the training dataset.

---

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)