TransformerDataset changes in progress
Revert to original version of transformer_dataset for now
Introduce data_partition

This is a workaround to make datasets like MNIST work with
BoltzmanMachine models having multiple input layers. The
proper way to do that would be to have a TransformerDataset
do the mapping, but this is something that has yet to be
developped.
Fix bug, add convenience methods