#NEWLINE# def buildAppropriateDataset( module ) : #NEWLINE# #INDENT# ' build a sequential dataset with 2 sequences of 3 samples, with arndom input and target values,\n    but the appropriate dimensions to be used on the provided module. ' #NEWLINE# if module . sequential : #NEWLINE# #INDENT# d = SequentialDataSet ( module . indim , module . outdim ) #NEWLINE# for dummy in range ( 2 ) : #NEWLINE# #INDENT# d . newSequence ( ) #NEWLINE# for dummy in range ( 3 ) : #NEWLINE# #INDENT# d . addSample ( randn ( module . indim ) , randn ( module . outdim ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# d = SupervisedDataSet ( module . indim , module . outdim ) #NEWLINE# for dummy in range ( 3 ) : #NEWLINE# #INDENT# d . addSample ( randn ( module . indim ) , randn ( module . outdim ) ) #NEWLINE# #UNINDENT# #UNINDENT# return d