class_docstr: Triples and mappings to their indices for LCWA.
class_docstr_tok: ["Triples","and","mappings","to","their","indices","for","LCWA","."]
docstr: Initialize the LCWA instances.
  
  :param pairs: The unique pairs
  :param compressed: The compressed triples in CSR format
docstr_tok: ["Initialize","the","LCWA","instances",".",":","param","pairs",":","The","unique","pairs",":","param","compressed",":","The","compressed","triples","in","CSR","format"]
code: def __init__(
      self, *, pairs: np.ndarray, compressed: scipy.sparse.csr_matrix
  ):
      """Initialize the LCWA instances.
  
      :param pairs: The unique pairs
      :param compressed: The compressed triples in CSR format
      """
      self.pairs = pairs
      self.compressed = compressed
  
imports: import math
  from abc import ABC, abstractmethod
  from typing import Callable, Generic, Iterable, Iterator, List, NamedTuple, Optional, Tuple, TypeVar
  import numpy
  import scipy.sparse
  import torch
  from class_resolver import HintOrType, OptionalKwargs
  from torch.utils import data
  from .utils import compute_compressed_adjacency_list
  from ..sampling import NegativeSampler, negative_sampler_resolver
  from ..typing import MappedTriples
label_desc: Use image node_id 1 to create a new LCWAInstances object from inherited base classes: Instances with example: obj = LCWAInstances()