MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / get_data

Function get_data

examples/CTC-TIMIT/train-timit.py:77–84  ·  view source on GitHub ↗
(path, isTrain, stat_file)

Source from the content-addressed store, hash-verified

75
76
77def 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
87def get_config(ds_train, ds_test):

Callers 1

train-timit.pyFile · 0.70

Calls 6

TIMITBatchClass · 0.90
MapDataComponentClass · 0.85
readMethod · 0.80
loadMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…