Read the sampleset from using the HDF5 format. Name is usually in {train, test}.

def load_sampleset(self, f, name):
        '''Read the sampleset from using the HDF5 format. Name is usually in {train, test}.'''
        self.encoder_x = np.array(f[name + '_encoder_x'])
        self.decoder_x = np.array(f[name + '_decoder_x'])
        self.decoder_y = np.array(f[name + '_decoder_y'])