(self, split)
return range(offset, offset + num_split_classes)
Gets the sequence of class labels for a split.

    Labels are returned ordered and without gaps.

    Args:
      split: A Split, the split for which to get classes.

    Returns:
      The sequence of classes for the split.
Gets the sequence of class labels for a split.
Gets the sequence of class labels for a split .
def get_classes(self, split):
    """Gets the sequence of class labels for a split.

    Labels are returned ordered and without gaps.

    Args:
      split: A Split, the split for which to get classes.

    Returns:
      The sequence of classes for the split.
    """
    if not hasattr(self, 'restricted_classes_per_split'):
      self.initialize()
    offset = self._get_split_offset(split)
    if (self.restricted_classes_per_split is not None and
        split in self.restricted_classes_per_split):
      num_split_classes = self.restricted_classes_per_split[split]
    else:
      # No restriction, so include all classes of the given split.
      num_split_classes = self._count_classes_in_superclasses(
          self.get_superclasses(split))

    return range(offset, offset + num_split_classes)
def get_classes ( self , split ) : if not hasattr ( self , 'restricted_classes_per_split' ) : self . initialize ( ) offset = self . _get_split_offset ( split ) if ( self . restricted_classes_per_split is not None and split in self . restricted_classes_per_split ) : num_split_classes = self . restricted_classes_per_split [ split ] else : # No restriction, so include all classes of the given split. num_split_classes = self . _count_classes_in_superclasses ( self . get_superclasses ( split ) ) return range ( offset , offset + num_split_classes )