<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLRegressorMetrics/rootMeanSquaredError",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLRegressorMetricsV20rootMeanSquaredErrorSdvp"
  },
  "title" : "rootMeanSquaredError"
}
-->

# rootMeanSquaredError

A common metric used to determine the deviation between correct and
predicted values.

```
var rootMeanSquaredError: Double { get }
```

## Discussion

The [`rootMeanSquaredError`](/documentation/CreateML/MLRegressorMetrics/rootMeanSquaredError) is calculated by taking
the square-root of the average squared distance between the correct and
predicted value.

---

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)