LoginSignup
0
0

More than 5 years have passed since last update.

MNISTの生データとTensorflowのデータ

Last updated at Posted at 2018-02-02

MNISTの生データを読み込むと5, 0, 4, 1...といった順に数字が読み込まれるはずである。

しかし、Tensorflowのmnist.train.imagesで見てみると、7, 4, 5...といった順に並ぶ。

あれ?なんかおかしいぞ。画像の順列が違う・・・。
これは6万枚あるTrainingデータの最初の5000枚をValidationデータ
としてTensorflowが省いているからなのである。

そのため、mnist.train.imagesは5.5万枚しかない。

画像の順列を合わせたい場合はoffsetとして+5000すればよい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0