[英]TFX - What is example_gen_pb2 and where is it documented?
ExampleGen TFX 管道組件具有使用example_gen_pb2的示例代碼,但它是什么以及記錄在哪里?
# Input has a single split 'input_dir/*'.
# Output 2 splits: train:eval=3:1.
output = proto.Output(
split_config=example_gen_pb2.SplitConfig(splits=[
proto.SplitConfig.Split(name='train', hash_buckets=3),
proto.SplitConfig.Split(name='eval', hash_buckets=1)
]))
example_gen = CsvExampleGen(input_base=input_dir, output_config=output)
如果你想導入它,你可以從 tfx.proto 中導入:
from tfx.proto import example_gen_pb2
來源: https://github.com/tensorflow/tfx/blob/master/tfx/components/example_gen/utils_test.py
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.