<!--
{
  "availability" : [
    "iOS: 15.0.0 - 16.0.0",
    "iPadOS: 15.0.0 - 16.0.0",
    "macCatalyst: 15.0.0 - 16.0.0",
    "macOS: 10.14.0 - 11.0.0",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDecisionTreeRegressor/ModelParameters-swift.struct/validationData-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML23MLDecisionTreeRegressorV15ModelParametersV14validationDataAA11MLDataTableVSgvp"
  },
  "title" : "validationData"
}
-->

# validationData

Validation data represented as a `MLDataTable`.

```
var validationData: MLDataTable? { get set }
```

## Discussion> Note: Setting this to `nil` means that the training data will be automatically split for
> validation. Setting it to an empty table means to not use a validation set.

---

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)