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

# isValid

A Boolean value indicating whether the classifier 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/mlclassifiermetrics/error.md)
