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

# isValid

A Boolean value indicating whether the object detector 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 images with annotations that don’t match the annotations of your training examples.

## See Also

### Handling errors

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