class_docstr: Test class for `BinaryRecallAtFixedPrecision` metric.
class_docstr_tok: ["Test","class","for","`","BinaryRecallAtFixedPrecision","`","metric","."]
docstr: Test class implementation of metric.
code: def test_binary_recall_at_fixed_precision(
      self, inputs, ddp, min_precision, ignore_index
  ):
      """Test class implementation of metric."""
      preds, target = inputs
      if ignore_index is not None:
          target = inject_ignore_index(target, ignore_index)
      self.run_class_metric_test(
          ddp=ddp,
          preds=preds,
          target=target,
          metric_class=BinaryRecallAtFixedPrecision,
          reference_metric=partial(
              _sklearn_recall_at_fixed_precision_binary,
              min_precision=min_precision,
              ignore_index=ignore_index,
          ),
          metric_args={
              "min_precision": min_precision,
              "thresholds": None,
              "ignore_index": ignore_index,
          },
      )
  
imports: from functools import partial
  import numpy
  import pytest
  import torch
  from scipy.special import expit
  from scipy.special import softmax
  from sklearn.metrics import precision_recall_curve
  from torchmetrics.classification.recall_fixed_precision import BinaryRecallAtFixedPrecision, MulticlassRecallAtFixedPrecision, MultilabelRecallAtFixedPrecision, RecallAtFixedPrecision
  from torchmetrics.functional.classification.recall_fixed_precision import binary_recall_at_fixed_precision, multiclass_recall_at_fixed_precision, multilabel_recall_at_fixed_precision
  from torchmetrics.metric import Metric
  from unittests import NUM_CLASSES
  from unittests.classification.inputs import _binary_cases, _multiclass_cases, _multilabel_cases
  from unittests.helpers import seed_all
  from unittests.helpers.testers import MetricTester, inject_ignore_index, remove_ignore_index
label_desc: Use image node_id 1 for calling the TestBinaryRecallAtFixedPrecision obj's underlying member method code with example usage: obj.test_binary_recall_at_fixed_precision(inputs, ddp, min_precision, ignore_index) without return types