我正在尝试使用此tfx.components.Transform函数获取“tf.transform 编码字典” 。
transform = Transform(
examples=example_gen.outputs['examples'],
schema=schema_gen.outputs['schema'],
module_file=os.path.abspath(_taxi_transform_module_file),
instance_name="taxi")
context.run(transform)
我需要这样的字典:“您加载的数据的字典({feature_name:feature_value})。”
如上所述的转换给了我一个 TfRecord 文件。我怎样才能正确解码?
任何帮助,将不胜感激。