#NEWLINE# def _get_all_transformations( self , learner , data_set ) : #NEWLINE# #INDENT# 'Computes all transformations of data.\n        Returns list of lists of lists such that:\n            result[input modality][output modality]\n        Does not transform data if not necessary.\n        ' #NEWLINE# internals = self . _get_all_internals ( learner , data_set ) #NEWLINE# out = [ [ [ ] for _dum in self . modalities ] for _my in self . modalities ] #NEWLINE# for in_mod in range ( self . n_modalities ) : #NEWLINE# #INDENT# out [ in_mod ] [ in_mod ] = data_set [ in_mod ] #NEWLINE# for out_mod in range ( self . n_modalities ) : #NEWLINE# #INDENT# if ( out_mod != in_mod ) : #NEWLINE# #INDENT# out [ in_mod ] [ out ] = learner . reconstruct_modality ( self . modalities [ out_mod ] , internals [ in_mod ] ) #NEWLINE# #UNINDENT# #UNINDENT# out [ in_mod ] . append ( internals [ in_mod ] ) #NEWLINE# #UNINDENT# return out