<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLObjectDetector/ObjectAnnotation/confidence",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML16MLObjectDetectorV16ObjectAnnotationV10confidenceSdvp"
  },
  "title" : "confidence"
}
-->

# confidence

The object detector’s confidence score for its prediction’s accuracy.

```
var confidence: Double
```

## Discussion

The confidence range is `[0.0, 1.0]`, where `1.0` is the highest possible confidence score.

---

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)