#NEWLINE# def load_next_partition( self , shared_xy ) : #NEWLINE# #INDENT# pfile_path = self . pfile_path_list [ self . cur_pfile_index ] #NEWLINE# if ( ( self . feat_mat is None ) or ( len ( self . pfile_path_list ) > 1 ) ) : #NEWLINE# #INDENT# fopen = smart_open ( pfile_path , 'rb' ) #NEWLINE# ( self . feat_mat , self . label_vec ) = cPickle . load ( fopen ) #NEWLINE# fopen . close ( ) #NEWLINE# ( shared_x , shared_y ) = shared_xy #NEWLINE# ( self . feat_mat , self . label_vec ) = preprocess_feature_and_label ( self . feat_mat , self . label_vec , self . read_opts ) #NEWLINE# if self . read_opts [ 'random' ] : #NEWLINE# #INDENT# shuffle_feature_and_label ( self . feat_mat , self . label_vec ) #NEWLINE# #UNINDENT# shared_x . set_value ( self . feat_mat , borrow = True ) #NEWLINE# shared_y . set_value ( self . label_vec . astype ( theano . config . floatX ) , borrow = True ) #NEWLINE# #UNINDENT# self . cur_frame_num = len ( self . feat_mat ) #NEWLINE# self . cur_pfile_index += 1 #NEWLINE# if ( self . cur_pfile_index >= len ( self . pfile_path_list ) ) : #NEWLINE# #INDENT# self . end_reading = True #NEWLINE# self . cur_pfile_index = 0