<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDecisionTreeRegressor/ModelParameters-swift.struct/init(validation:maxDepth:minLossReduction:minChildWeight:randomSeed:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML23MLDecisionTreeRegressorV15ModelParametersV10validation8maxDepth16minLossReduction0K11ChildWeight10randomSeedA2E14ValidationDataO_SiS2dSitcfc"
  },
  "title" : "init(validation:maxDepth:minLossReduction:minChildWeight:randomSeed:)"
}
-->

# init(validation:maxDepth:minLossReduction:minChildWeight:randomSeed:)

```
init(validation: MLDecisionTreeRegressor.ModelParameters.ValidationData, maxDepth: Int = 6, minLossReduction: Double = 0, minChildWeight: Double = 0.1, randomSeed: Int = 42)
```

---

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)