#NEWLINE# @ classmethod #NEWLINE# def calculateModuleOutput( cls , module , dataset ) : #NEWLINE# #INDENT# " Calculates the module's output on the dataset. Can be called with\n            any type of dataset.\n\n            :arg dataset: Any Dataset object containing an 'input' field.\n        " #NEWLINE# if ( isinstance ( dataset , SequentialDataSet ) or isinstance ( dataset , ImportanceDataSet ) ) : #NEWLINE# #INDENT# return cls . _calculateModuleOutputSequential ( module , dataset ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# module . reset ( ) #NEWLINE# input = dataset . getField ( 'input' ) #NEWLINE# output = array ( [ module . activate ( inp ) for inp in input ] ) #NEWLINE# return output