def get_mapped_batch(dataset, design_batch):
    if design_batch.ndim != 2:
        design_batch = dataset.get_design_matrix(design_batch)
    mapped_batch_design = dataset.mapback_for_viewer(design_batch)
    mapped_batch = dataset.get_topological_view(mapped_batch_design)

    return mapped_batch
Get mapped batch if 'mapback_for_viewer' is available with the dataset.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/scripts/dbm/show_samples.py/get_mapped_batch