---
title: columnSubsample
framework: createmlcomponents
role: symbol
role_heading: Instance Property
path: createmlcomponents/boostedtreeconfiguration/columnsubsample
---

# columnSubsample

Subsample ratio of the columns in each iteration of tree construction.

## Declaration

```swift
var columnSubsample: Double
```

## Discussion

Discussion Like row subsample, this can also help prevent model overfitting. Setting this to a value of 0.5 results in the model randomly sampling half of the columns to grow each tree. Must be in the range (0, 1).

## See Also

### Inspecting the configuration

- [earlyStoppingIterationCount](createmlcomponents/boostedtreeconfiguration/earlystoppingiterationcount.md)
- [learningRate](createmlcomponents/boostedtreeconfiguration/learningrate.md)
- [maximumDepth](createmlcomponents/boostedtreeconfiguration/maximumdepth.md)
- [maximumIterations](createmlcomponents/boostedtreeconfiguration/maximumiterations.md)
- [minimumChildWeight](createmlcomponents/boostedtreeconfiguration/minimumchildweight.md)
- [minimumLossReduction](createmlcomponents/boostedtreeconfiguration/minimumlossreduction.md)
- [parallelTreeCount](createmlcomponents/boostedtreeconfiguration/paralleltreecount.md)
- [randomSeed](createmlcomponents/boostedtreeconfiguration/randomseed.md)
- [rowSubsample](createmlcomponents/boostedtreeconfiguration/rowsubsample.md)
- [stepSize](createmlcomponents/boostedtreeconfiguration/stepsize.md)
