TensorFlow Datasets は、TensorFlow や他の Python ML フレームワーク(JAX など)で使用できるデータセットのコレクションです。 データセットはすべて tf.data.Datasets として公開され、使いやすく高性能な入力パイプラインを実現できます。 開始にあたっては、ガイドとデータセットのリストをご覧ください。 import tensorflow.compat.v2 as tf import tensorflow_datasets as tfds # Construct a tf.data.Dataset ds = tfds.load('mnist', split='train', shuffle_files=True) # Build your input pipeline ds = ds.shuffle(1024).batch(32).pre
![TensorFlow Datasets](https://cdn-ak-scissors.b.st-hatena.com/image/square/bdb5e91dc4d40d76381787e230e41d8a6eb0f253/height=288;version=1;width=512/https%3A%2F%2Fwww.tensorflow.org%2Fstatic%2Fimages%2Ftf_logo_social.png%3Fhl%3Dja)