Instance Property


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


var targetColumn: String


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

See Also

Creating and Training a Boosted Tree Regressor

init(trainingData: MLDataTable, targetColumn: String, featureColumns: [String]?, parameters: MLBoostedTreeRegressor.ModelParameters)

Creates a Boosted Tree Regressor from the feature columns in the training data to predict the values in the target column.

struct MLBoostedTreeRegressor.ModelParameters

Parameters that affect the process of training a model.

let modelParameters: MLBoostedTreeRegressor.ModelParameters

The underlying parameters used when training the model.

var featureColumns: [String]

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