(self, class_id, pool=None)
return self.examples_per_class[class_id]
Gets the number of images of class whose id is class_id.

    Args:
      class_id: The integer class id of a class.
      pool: None or string, unused. Should be None because no dataset with a DAG
        hierarchy supports example-level splits currently.

    Returns:
      An integer representing the number of images of class with id class_id.

    Raises:
      ValueError: no class_id specified yet there is class imbalance, or
        class_id is specified but doesn't correspond to any class, or "pool"
        is provided.
Gets the number of images of class whose id is class_id.
Gets the number of images of class whose id is class_id .
def get_total_images_per_class(self, class_id, pool=None):
    """Gets the number of images of class whose id is class_id.

    Args:
      class_id: The integer class id of a class.
      pool: None or string, unused. Should be None because no dataset with a DAG
        hierarchy supports example-level splits currently.

    Returns:
      An integer representing the number of images of class with id class_id.

    Raises:
      ValueError: no class_id specified yet there is class imbalance, or
        class_id is specified but doesn't correspond to any class, or "pool"
        is provided.
    """
    if pool is not None:
      raise ValueError('No dataset with a HierarchicalDataSpecification '
                       'supports example-level splits (pools).')

    # Find the class with class_id in one of the split graphs.
    if class_id not in self.examples_per_class:
      raise ValueError('Class id {} not found.'.format(class_id))
    return self.examples_per_class[class_id]
def get_total_images_per_class ( self , class_id , pool = None ) : if pool is not None : raise ValueError ( 'No dataset with a HierarchicalDataSpecification ' 'supports example-level splits (pools).' ) # Find the class with class_id in one of the split graphs. if class_id not in self . examples_per_class : raise ValueError ( 'Class id {} not found.' . format ( class_id ) ) return self . examples_per_class [ class_id ]