A model you train to estimate continuous values.
- macOS 10.14+Beta
- Xcode 10.0+Beta
- Create ML
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 that it was trained on.
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, no examples of 3 solar panels were provided, but the regressor can make an informed prediction about the housing price.
When you create an
MLRegressor, your data is inspected and a specific regressor is chosen automatically (see Supporting Regressor Types).