MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / parse_parquet

Function parse_parquet

modelzoo/dbmtl/train.py:323–330  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

321 return features, label
322
323 def parse_parquet(value):
324 tf.logging.info('Parsing {}'.format(filename))
325 labels = []
326 for i in range(0, len(LABEL_COLUMNS)):
327 labels.append(value.pop(LABEL_COLUMNS[i]))
328 label = tf.stack(labels, axis=1)
329 features = value
330 return features, label
331
332 '''Work Queue Feature'''
333 if args.workqueue and not args.tf:

Callers

nothing calls this directly

Calls 6

infoMethod · 0.80
rangeFunction · 0.50
formatMethod · 0.45
appendMethod · 0.45
popMethod · 0.45
stackMethod · 0.45

Tested by

no test coverage detected