Instance Property


The underlying parameters used when training the model.


let modelParameters: MLLinearRegressor.ModelParameters

See Also

Creating and Training a Linear Regressor

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

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

struct MLLinearRegressor.ModelParameters

Parameters that affect the process of training a 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.