<s> __author__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> from pybrain . datasets . dataset import DataSet <EOL> class UnsupervisedDataSet ( DataSet ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , dim ) : <EOL> """<STR_LIT>""" <EOL> super ( UnsupervisedDataSet , self ) . __init__ ( ) <EOL> self . addField ( '<STR_LIT>' , dim ) <EOL> self . linkFields ( [ '<STR_LIT>' ] ) <EOL> self . dim = dim <EOL> self . index = <NUM_LIT:0> <EOL> def __reduce__ ( self ) : <EOL> _ , _ , state , _ , _ = super ( UnsupervisedDataSet , self ) . __reduce__ ( ) <EOL> creator = self . __class__ <EOL> args = ( self . dim , ) <EOL> return creator , args , state , iter ( [ ] ) , iter ( { } ) <EOL> def addSample ( self , sample ) : <EOL> self . appendLinked ( sample ) <EOL> def getSample ( self , index ) : <EOL> return self . getLinked ( index ) </s>
