class_docstr: Ranks for different ranking types.
class_docstr_tok: ["Ranks","for","different","ranking","types","."]
docstr: Return mapping from rank-type to rank value tensor.
docstr_tok: ["Return","mapping","from","rank-type","to","rank","value","tensor","."]
code: def to_type_dict(self) -> Mapping[RankType, torch.FloatTensor]:
      """Return mapping from rank-type to rank value tensor."""
      return {
          RANK_OPTIMISTIC: self.optimistic,
          RANK_REALISTIC: self.realistic,
          RANK_PESSIMISTIC: self.pessimistic,
      }
  
file_path: pykeen/src/pykeen/evaluation/ranks.py
imports: from dataclasses import dataclass
  from typing import Iterable, Mapping, Tuple, Union
  import torch
  from ..typing import RANK_OPTIMISTIC, RANK_PESSIMISTIC, RANK_REALISTIC, RankType
label_desc: Use image node_id 2 for calling the Ranks obj's underlying member method code with example usage: obj.to_type_dict() and returns: dict