(self)
Create a new [BiLevel]DatasetSpecification given the fields in self.

    Set self.dataset_spec to that new object. After the initial creation,
    this is needed in the case of datasets with example-level splits, since
    file_pattern and images_per_class have to be replaced by new objects.
Create a new [BiLevel]DatasetSpecification given the fields in self.
Create a new [ BiLevel ] DatasetSpecification given the fields in self .
def _create_data_spec(self):
    """Create a new [BiLevel]DatasetSpecification given the fields in self.

    Set self.dataset_spec to that new object. After the initial creation,
    this is needed in the case of datasets with example-level splits, since
    file_pattern and images_per_class have to be replaced by new objects.
    """
    if self.has_superclasses:
      self.dataset_spec = ds_spec.BiLevelDatasetSpecification(
          self.name, self.superclasses_per_split, self.classes_per_superclass,
          self.images_per_class, self.superclass_names, self.class_names,
          self.records_path, self.file_pattern)
    else:
      self.dataset_spec = ds_spec.DatasetSpecification(
          self.name, self.classes_per_split, self.images_per_class,
          self.class_names, self.records_path, self.file_pattern)
def _create_data_spec ( self ) : if self . has_superclasses : self . dataset_spec = ds_spec . BiLevelDatasetSpecification ( self . name , self . superclasses_per_split , self . classes_per_superclass , self . images_per_class , self . superclass_names , self . class_names , self . records_path , self . file_pattern ) else : self . dataset_spec = ds_spec . DatasetSpecification ( self . name , self . classes_per_split , self . images_per_class , self . class_names , self . records_path , self . file_pattern )