Instance Property


The name of the column you selected at initialization to define which feature the regressor predicts.


var targetColumn: String { get }

See Also

Creating and Training a Regressor

init(trainingData: MLDataTable, targetColumn: String, featureColumns: [String]?)

Creates a regressor from the feature columns in the training data to predict the values in the target column.

var featureColumns: [String]

The names of the columns you selected at initialization to train the regressor.