<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/Regressor",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents9RegressorP"
  },
  "title" : "Regressor"
}
-->

# Regressor

A transformer that predicts a float value.

```
protocol Regressor : Transformer where Self.Output : FloatingPoint
```

## Topics

### Performing the prediction

[`func prediction(from:)`](/documentation/CreateMLComponents/Regressor/prediction(from:))

Performs a prediction from a single input.

## Relationships

### Conforming Types

[`LinearRegressorModel`](/documentation/CreateMLComponents/LinearRegressorModel)

[`FullyConnectedNetworkRegressorModel`](/documentation/CreateMLComponents/FullyConnectedNetworkRegressorModel)

[`MLModelRegressorAdaptor`](/documentation/CreateMLComponents/MLModelRegressorAdaptor)

### Inherits From

[`Transformer`](/documentation/CreateMLComponents/Transformer)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)