How to *actually* read CSV data in TensorFlow?

前端 未结 5 1198
感动是毒
感动是毒 2020-11-28 22:32

I\'m relatively new to the world of TensorFlow, and pretty perplexed by how you\'d actually read CSV data into a usable example/label tensors in Te

5条回答
  •  渐次进展
    2020-11-28 23:17

    2.0 Compatible Solution: This Answer might be provided by others in the above thread but I will provide additional links which will help the community.

    dataset = tf.data.experimental.make_csv_dataset(
          file_path,
          batch_size=5, # Artificially small to make examples easier to show.
          label_name=LABEL_COLUMN,
          na_value="?",
          num_epochs=1,
          ignore_errors=True, 
          **kwargs)
    

    For more information, please refer this Tensorflow Tutorial.

提交回复
热议问题