(path, isTrain, stat_file)
| 75 | |
| 76 | |
| 77 | def get_data(path, isTrain, stat_file): |
| 78 | ds = LMDBSerializer.load(path, shuffle=isTrain) |
| 79 | mean, std = serialize.loads(open(stat_file, 'rb').read()) |
| 80 | ds = MapDataComponent(ds, lambda x: (x - mean) / std) |
| 81 | ds = TIMITBatch(ds, BATCH) |
| 82 | if isTrain: |
| 83 | ds = MultiProcessRunnerZMQ(ds, 1) |
| 84 | return ds |
| 85 | |
| 86 | |
| 87 | def get_config(ds_train, ds_test): |
no test coverage detected
searching dependent graphs…