---
title: validation
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlrandomforestregressor/modelparameters-swift.struct/validation
---

# validation

Validation data.

## Declaration

```swift
var validation: MLRandomForestRegressor.ModelParameters.ValidationData { get set }
```

## Discussion

Discussion The default is .split(strategy: .automatic), which automatically generates the validation dataset from 0% to 10% of the training dataset.

## See Also

### Accessing parameters

- [columnSubsample](createml/mlrandomforestregressor/modelparameters-swift.struct/columnsubsample.md)
- [maxDepth](createml/mlrandomforestregressor/modelparameters-swift.struct/maxdepth.md)
- [maxIterations](createml/mlrandomforestregressor/modelparameters-swift.struct/maxiterations.md)
- [minChildWeight](createml/mlrandomforestregressor/modelparameters-swift.struct/minchildweight.md)
- [minLossReduction](createml/mlrandomforestregressor/modelparameters-swift.struct/minlossreduction.md)
- [randomSeed](createml/mlrandomforestregressor/modelparameters-swift.struct/randomseed.md)
- [rowSubsample](createml/mlrandomforestregressor/modelparameters-swift.struct/rowsubsample.md)
- [validationData](createml/mlrandomforestregressor/modelparameters-swift.struct/validationdata-swift.property.md)
