AmirHJ
AmirHJ

Reputation: 837

How to create a CSV Reader in TensorFlow?

There is a tf.TextLineReader and decode_csv in TensorFlow. But there is no CSV_Reader. I just interested to know how can I zip them in order to feed it into tf.contrib.learn.read_batch_features.

Upvotes: 0

Views: 454

Answers (1)

Jules Gagnon-Marchand
Jules Gagnon-Marchand

Reputation: 3781

how about reading the CSV files with decode_csv and feeding them to tf.train.shuffle_batch_join ?

It's what tf.contrib.learn.read_batch_features does with it's extracted features after all: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py#L212

read_batch_features is a wrapper over tf.contrib.learn.read_keyed_batch_examples

Upvotes: 1

Related Questions