#NEWLINE# def get_data_specs( self , model ) : #NEWLINE# #INDENT# "\n        Provides a default data specification.\n\n        The cost requests input features from the model's input space and\n        input source. `self` must contain a bool field called `supervised`.\n        If this field is True, the cost requests targets as well.\n\n        Parameters\n        ----------\n        model : pylearn2.models.Model\n            TODO WRITEME\n        " #NEWLINE# if self . supervised : #NEWLINE# #INDENT# space = CompositeSpace ( [ model . get_input_space ( ) , model . get_target_space ( ) ] ) #NEWLINE# sources = ( model . get_input_source ( ) , model . get_target_source ( ) ) #NEWLINE# return ( space , model ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( model . get_input_space ( ) , model . get_input_source ( ) )