def get_mapped_batch(dataset, design_batch):
 if (design_batch.ndim != 2):
  design_batch = dataset.get_design_matrix(design_batch.copy())
 mapped_design = dataset.mapback(design_batch.copy())
 mapped_batch = dataset.get_topological_view(mapped_design.copy())
 return mapped_batch

def get_mapped_batch ( dataset , design_batch ) : if ( design_batch . ndim != 2 ) : design_batch = dataset . get_design_matrix ( design_batch . copy ( ) ) mapped_design = dataset . mapback ( design_batch . copy ( ) ) mapped_batch = dataset . get_topological_view ( mapped_design . copy ( ) ) return mapped_batch
get mapped batch if mapback_for_viewer is available with the dataset .