#NEWLINE# def get_data_specs( self , model ) : #NEWLINE# #INDENT# '\n        Get a flat data_specs containing all information for all sub-costs.\n\n        Parameters\n        ----------\n        model : pylearn2.models.Model\n            TODO WRITEME\n\n        Notes\n        -----\n        This data_specs should be non-redundant. It is built by flattening\n        the composite data_specs returned by `get_composite_specs`.\n\n        This is the format that SumOfCosts will request its data in. Then,\n        this flat data tuple will be nested into the composite data_specs,\n        in order to dispatch it among the different sub-costs.\n        ' #NEWLINE# ( composite_specs , mapping ) = self . get_composite_specs_and_mapping ( model ) #NEWLINE# ( composite_space , sources ) = composite_specs #NEWLINE# flat_composite_space = mapping . flatten ( composite_space ) #NEWLINE# flat_sources = mapping . flatten ( sources ) #NEWLINE# data_specs = ( flat_composite_space , data_specs ) #NEWLINE# return data_specs