class_docstr: Wrapper for deprecated import.
  
  >>> from torch import tensor
  >>> indexes = tensor([0, 0, 0, 0, 1, 1, 1])
  >>> preds = tensor([0.4, 0.01, 0.5, 0.6, 0.2, 0.3, 0.5])
  >>> target = tensor([True, False, False, True, True, False, True])
  >>> r = _RetrievalRecallAtFixedPrecision(min_precision=0.8)
  >>> r(preds, target, indexes=indexes)
  (tensor(0.5000), tensor(1))
class_docstr_tok: ["Wrapper","for","deprecated","import",".",">",">",">","from","torch","import","tensor",">",">",">","indexes","=","tensor","(","[","0",",","0",",","0",",","0",",","1",",","1",",","1","]",")",">",">",">","preds","=","tensor","(","[","0.4",",","0.01",",","0.5",",","0.6",",","0.2",",","0.3",",","0.5","]",")",">",">",">","target","=","tensor","(","[","True",",","False",",","False",",","True",",","True",",","False",",","True","]",")",">",">",">","r","=","_RetrievalRecallAtFixedPrecision","(","min_precision=0.8",")",">",">",">","r","(","preds",",","target",",","indexes=indexes",")","(","tensor","(","0.5000",")",",","tensor","(","1",")",")"]
code: def __init__(
      self,
      min_precision: float = 0.0,
      max_k: Optional[int] = None,
      adaptive_k: bool = False,
      empty_target_action: str = "neg",
      ignore_index: Optional[int] = None,
      **kwargs: Any,
  ) -> None:
      _deprecated_root_import_class(
          "RetrievalRecallAtFixedPrecision", "retrieval"
      )
      super().__init__(
          min_precision=min_precision,
          max_k=max_k,
          adaptive_k=adaptive_k,
          empty_target_action=empty_target_action,
          ignore_index=ignore_index,
          **kwargs,
      )
  
imports: from typing import Any, Optional
  from torchmetrics.retrieval.average_precision import RetrievalMAP
  from torchmetrics.retrieval.fall_out import RetrievalFallOut
  from torchmetrics.retrieval.hit_rate import RetrievalHitRate
  from torchmetrics.retrieval.ndcg import RetrievalNormalizedDCG
  from torchmetrics.retrieval.precision import RetrievalPrecision
  from torchmetrics.retrieval.precision_recall_curve import RetrievalPrecisionRecallCurve, RetrievalRecallAtFixedPrecision
  from torchmetrics.retrieval.r_precision import RetrievalRPrecision
  from torchmetrics.retrieval.recall import RetrievalRecall
  from torchmetrics.retrieval.reciprocal_rank import RetrievalMRR
  from torchmetrics.utilities.prints import _deprecated_root_import_class
label_desc: Use image node_id 1 to create a new _RetrievalRecallAtFixedPrecision object from inherited base classes: RetrievalRecallAtFixedPrecision with example: obj = _RetrievalRecallAtFixedPrecision(min_precision, max_k, adaptive_k, empty_target_action, ignore_index)