<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCYOLOLossDescriptor/shouldRescore",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:objc(cs)MLCYOLOLossDescriptor(py)shouldRescore"
  },
  "title" : "shouldRescore"
}
-->

# shouldRescore

A Boolean that indicates whether the layer scales the object confidence loss by the intersection over union (IOU) overlap.

```
var shouldRescore: Bool { get set }
```

## Discussion

If `true`, the layer scales the loss by the IOU overlap; otherwise, the layer doesn’t scale the loss by the IOU overlap. The default value is `true`.

Rescore pertains to multiplying the confidence groundTruth with the intersection over union (IOU) of the predicted bounding box and the groundTruth boundingBox.

---

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)