{"description":"[TensorFlow] import tensorflow_datasets as tfds dataset, metadata = tfds.load('mnist', as_supervised=True, with_info=True) train_dataset = dataset['train'] num_train_examples = metadata.splits['train'].num_examples def normalize(images, labels): images = tf.cast(images, tf.float32) images /= 255 ret\u2026","width":"100%","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","categories":["machine_learning"],"version":"1.0","published":"2019-10-04 23:44:53","url":"https://randommemory.hatenablog.com/entry/2019/10/04/234453","provider_name":"Hatena Blog","image_url":null,"type":"rich","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2019%2F10%2F04%2F234453\" title=\"MNIST\u306e\u624b\u66f8\u304d\u6570\u5b57\u30c7\u30fc\u30bf\u306e\u53d6\u5f97 - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"MNIST\u306e\u624b\u66f8\u304d\u6570\u5b57\u30c7\u30fc\u30bf\u306e\u53d6\u5f97","author_url":"https://blog.hatena.ne.jp/derwind/","height":"190","blog_url":"https://randommemory.hatenablog.com/","author_name":"derwind"}