def buildAppropriateDataset(module):
 if module.sequential:
  d = SequentialDataSet(module.indim, module.outdim)
  for dummy in range(2):
   d.newSequence()
   for dummy in range(3):
    d.addSample(randn(module.indim), randn(module.outdim))
 else:
  d = SupervisedDataSet(module.indim, module.outdim)
  for dummy in range(3):
   d.addSample(randn(module.indim), randn(module.outdim))
 return d

def buildAppropriateDataset ( module ) : if module . sequential : d = SequentialDataSet ( module . indim , module . outdim ) for dummy in range ( 2 ) : d . newSequence ( ) for dummy in range ( 3 ) : d . addSample ( randn ( module . indim ) , randn ( module . outdim ) ) else : d = SupervisedDataSet ( module . indim , module . outdim ) for dummy in range ( 3 ) : d . addSample ( randn ( module . indim ) , randn ( module . outdim ) ) return d
build a sequential dataset with 2 sequences of 3 samples .