def load_data(self, args, mode, type):
     if mode == 'train':
         return load_batched_data(train_mfcc_dir, train_label_dir,
                                  batch_size, mode, type)
     elif mode == 'test':
         return load_batched_data(test_mfcc_dir, test_label_dir, batch_size,
                                  mode, type)
     else:
         raise TypeError('mode should be train or test.')
 def load_data(self, args, mode, type):
     if mode == 'TRAIN':
         return load_batched_data(train_mfcc_dir, train_label_dir,
                                  batch_size, mode, type)
     elif mode == 'TEST':
         return load_batched_data(test_mfcc_dir, test_label_dir, batch_size,
                                  mode, type)
     else:
         raise TypeError('mode should be TRAIN or TEST.')
예제 #3
0
 def load_data(self, feature_dir, label_dir, mode, level):
     return load_batched_data(feature_dir, label_dir, batch_size, mode,
                              level)