---
title: maximumError
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlregressormetrics/maximumerror
---

# maximumError

The largest absolute difference between the expected values and the model’s predicted values during testing or training.

## Declaration

```swift
var maximumError: Double { get }
```

## Mentioned in

Improving Your Model’s Accuracy

## See Also

### Understanding the model

- [rootMeanSquaredError](createml/mlregressormetrics/rootmeansquarederror.md)
