---
title: targetColumn
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlrandomforestclassifier/targetcolumn
---

# targetColumn

The name of the column you selected at initialization to define which categories the classifier predicts.

## Declaration

```swift
var targetColumn: String
```

## Discussion

Discussion Changing the value of this property doesn’t retrain the model or affect its behavior.

## See Also

### Creating a random forest classifier synchronously

- [init(trainingData:targetColumn:featureColumns:parameters:)](createml/mlrandomforestclassifier/init(trainingdata:targetcolumn:featurecolumns:parameters:).md)
- [featureColumns](createml/mlrandomforestclassifier/featurecolumns.md)
