class_docstr: Holds data and its respective indices
docstr: Initialize a data pointer
  
  Args:
      data (csr_matrix): The target data matrix.
      entities (Iterator): An iterator (of 2 elements (ndarray)) containing
      the features of row, col entities.
docstr_tok: ["Initialize","a","data","pointer","Args",":","data","(","csr_matrix",")",":","The","target","data","matrix",".","entities","(","Iterator",")",":","An","iterator","(","of","2","elements","(","ndarray",")",")","containing","the","features","of","row",",","col","entities","."]
code: def __init__(self, data, entities):
      """Initialize a data pointer
  
      Args:
          data (csr_matrix): The target data matrix.
          entities (Iterator): An iterator (of 2 elements (ndarray)) containing
          the features of row, col entities.
      """
      assert isspmatrix_csr(data)
  
      self.data = data
      self.entities = entities
      self.data_indices = None
      self.entity_indices = [None, None]
  
imports: import logging
  import pandas
  import numpy
  from scipy.sparse import coo_matrix, isspmatrix_csr
  from sklearn.model_selection import train_test_split
  from sklearn.preprocessing import normalize
  from recommenders.utils.python_utils import binarize
  from .geoimc_utils import length_normalize, reduce_dims
label_desc: Use image node_id 1 to create a new DataPtr object  with example: obj = DataPtr(data, entities)