A model you train to estimate continuous values.
SDKs
- macOS 10.14+
- Xcode 10.0+
Framework
- Create ML
Declaration
enum MLRegressor
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.

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).