HF RL Explorer

You are working on the Lightning-AI/torchmetrics repository. The source code is checked out at /testbed at…

You are working on the Lightning-AI/torchmetrics repository. The source code is checked out at /testbed at…: a task in SWE-Lego-RL-2699 (Harbor dataset). BinnedPrecisionRecallCurve argument thresholds is default to None , when None is passed, self.num thresholds is not initialized, causing error…

The task

BinnedPrecisionRecallCurve argument `thresholds` is default to `None`, when `None` is passed, `self.num_thresholds` is not initialized, causing error like `AttributeError: 'BinnedAveragePrecision' object has no attribute 'num_thresholds'`.

Part of Lego-X/Lego-RL-2699.