Enumeration Case

MLRegressor.decisionTree(_:)

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

Declaration

case decisionTree(MLDecisionTreeRegressor)

Discussion

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

See Also

Regressor Cases

case linear(MLLinearRegressor)

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

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.