---
title: isValid
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlregressormetrics/isvalid
---

# isValid

A Boolean value indicating whether the regressor model was able to calculate metrics.

## Declaration

```swift
var isValid: Bool { get }
```

## Discussion

Discussion Your metrics may be invalid if you attempt to perform evaluation on data that doesn’t match the structure of your training examples.

## See Also

### Handling errors

- [error](createml/mlregressormetrics/error.md)
