(self, samples)
Write samples to data file.
Write samples to data file.
Write samples to data file .
def write(self, samples):
        """ Write samples to data file. """
        with open(self._data_file, 'wb') as data_file:
            cPickle.dump(data_file, samples)
def write ( self , samples ) : with open ( self . _data_file , 'wb' ) as data_file : cPickle . dump ( data_file , samples )