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


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



A data table of training examples.


The column name for the values in the training data the regressor should predict.


The column names for the values in the training data that the regressor uses to predict the target value.

See Also

Creating and Training a Boosted Tree Regressor

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 targetColumn: String

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

var featureColumns: [String]

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