---
title: minChildWeight
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mldecisiontreeclassifier/modelparameters-swift.struct/minchildweight
---

# minChildWeight

The minimum weight of each leaf node.

## Declaration

```swift
var minChildWeight: Double
```

## Discussion

Discussion The minimum child weight controls when the tree building should terminate based comparing the sum of the instance weights to the minChildWeight.

## See Also

### Accessing parameters

- [validationData](createml/mldecisiontreeclassifier/modelparameters-swift.struct/validationdata-swift.property.md)
- [maxDepth](createml/mldecisiontreeclassifier/modelparameters-swift.struct/maxdepth.md)
- [minLossReduction](createml/mldecisiontreeclassifier/modelparameters-swift.struct/minlossreduction.md)
- [randomSeed](createml/mldecisiontreeclassifier/modelparameters-swift.struct/randomseed.md)
- [validation](createml/mldecisiontreeclassifier/modelparameters-swift.struct/validation.md)
