Enumeration Case

MLRegressor.linear(_:)

A regressor that estimates the target as a linear function of the features.

Declaration

case linear(MLLinearRegressor)

Discussion

Don’t create an MLRegressor using one of its enumeration cases. Use the regressor’s initializer instead.

See Also

Regressor Cases

case decisionTree(MLDecisionTreeRegressor)

A regressor that estimates the target by learning rules to split the data.

case boostedTree(MLBoostedTreeRegressor)

A regressor based on a collection of decision trees combined with gradient boosting.

case randomForest(MLRandomForestRegressor)

A regressor based on a collection of decision trees trained on subsets of the data.