MLRegressor
A model you train to estimate continuous values.
Declaration
enum MLRegressorMentioned in
Overview
Use an MLRegressor to estimate continuous values like price, time, or temperature.
A regressor differs from a classifier because it can predict output values not seen during the training process. By contrast, a classifier can only classify input into the categories you provide in the training data.
For example, when estimating housing prices on Mars, a regressor can interpolate between the examples to estimate prices not seen during training. The figure below shows a linear regressor for Mars real-estate prices similar to the Integrating a Core ML Model into Your App sample.
[Image]
In this case, there are no data points with three solar panels, but the regressor can make an informed prediction about the housing price.
When you create an MLRegressor, Create ML inspects your data and automatically chooses a specific regressor (see Supporting Regressor Types).
Topics
Creating and training a regressor
Evaluating a regressor
Testing a regressor
Saving a regressor
Describing a regressor
Regressor cases
MLRegressor.linear(_:)MLRegressor.decisionTree(_:)MLRegressor.boostedTree(_:)MLRegressor.randomForest(_:)