0
TensorFlow中有tf.TextLineReader和decode_csv。但是沒有CSV_Reader。我只想知道如何將它壓縮到tf.contrib.learn.read_batch_features。如何在TensorFlow中創建CSV閱讀器?
TensorFlow中有tf.TextLineReader和decode_csv。但是沒有CSV_Reader。我只想知道如何將它壓縮到tf.contrib.learn.read_batch_features。如何在TensorFlow中創建CSV閱讀器?
如何使用decode_csv
讀取CSV文件並將它們送入tf.train.shuffle_batch_join
?
這tf.contrib.learn.read_batch_features
做什麼用它提取的特徵畢竟:https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/learn/python/learn/learn_io/graph_io.py#L212
read_batch_features超過tf.contrib.learn.read_keyed_batch_examples
其實,我要去修改[此來源]的包裝(https://github.com/ dennybritz/chatbot-retrieval/blob/master/udc_inputs.py#L38-L46)從我的csv數據集而不是TFRecord文件提供。所以,尋找一個最小的修改。任何建議? – AmirHJ
嘗試將'tf.TextLineReader'作爲read_batch_features的'reader'參數,'parse_fn'參數的'tf.decode_csv' – Julius
'read_batch_features'不接受'parse_fn',我應該調用[read_batch_example]( https://www.tensorflow.org/versions/r0.10/api_docs/python/contrib.learn.html#read_batch_examples)函數。謝謝。 – AmirHJ