class_docstr: Helper class to avoid loading two dataset columns into memory when accessing it.
docstr: Args:
      dataset (Dataset): dataset to build an iterator on
      first_col (str): first column name to use in the dataset
      second_col (str): second column name to use in the dataset
      first_key (str): key name used for the first column in the returned dictionary
      second_key (str): key name used for the second column in the returned dictionary
docstr_tok: ["Args",":","dataset","(","Dataset",")",":","dataset","to","build","an","iterator","on","first_col","(","str",")",":","first","column","name","to","use","in","the","dataset","second_col","(","str",")",":","second","column","name","to","use","in","the","dataset","first_key","(","str",")",":","key","name","used","for","the","first","column","in","the","returned","dictionary","second_key","(","str",")",":","key","name","used","for","the","second","column","in","the","returned","dictionary"]
code: def __init__(
      self,
      dataset: Dataset,
      first_col: str,
      second_col: str,
      first_key: str,
      second_key: str,
  ):
      """
      Args:
          dataset (Dataset): dataset to build an iterator on
          first_col (str): first column name to use in the dataset
          second_col (str): second column name to use in the dataset
          first_key (str): key name used for the first column in the returned dictionary
          second_key (str): key name used for the second column in the returned dictionary
      """
      self.dataset = dataset
  
      self.first_col = first_col
      self.second_col = second_col
  
      self.first_key = first_key
      self.second_key = second_key
  
file_path: evaluate/src/evaluate/evaluator/utils.py
imports: from datasets import Dataset, get_dataset_split_names
label_desc: Use image node_id 1 to create a new DatasetColumnPair object from inherited base classes: list with example: obj = DatasetColumnPair(dataset, first_col, second_col, first_key, second_key)