TensorFlow は、データを保存する優れた方法として構築されています。これは、たとえば、例で MNIST データを格納するために使用されます。
>>> mnist
<tensorflow.examples.tutorials.mnist.input_data.read_data_sets.<locals>.DataSets object at 0x10f930630>
入力と出力のnumpy配列があるとします。
>>> x = np.random.normal(0,1, (100, 10))
>>> y = np.random.randint(0, 2, 100)
それらをデータセットに変換するにはどうすればよいtf
ですか?
のような機能を使いたいnext_batch