- Practical Computer Vision
- Abhinav Dadhich
- 140字
- 2021-06-30 18:54:46
MNIST
MNIST is a dataset for handwritten digits with the numbers 0-9 with 60,000 images of size 28 x 28 as the training set and 10,000 images of size 28 x 28 as the test set. This has become the go to dataset for starting machine learning or deep learning. It is provided in most of the frameworks and there is no need to download it separately. In Keras, this can be used as follows:
from __future__ import print_function
from keras.datasets import mnist
import matplotlib.pyplot as plt
# Download and load dataset
(x_train, y_train), (x_test, y_test) = mnist.load_data()
# to know the size of data
print("Train data shape:", x_train.shape, "Test data shape:", x_test.shape)
# plot sample image
idx = 0
print("Label:",y_train[idx])
plt.imshow(x_train[idx], cmap='gray')
plt.axis('off')
plt.show()
Some of the sample images from this dataset are as shown in the following figure:

推薦閱讀
- 自動控制工程設計入門
- Julia 1.0 Programming
- PIC單片機C語言非常入門與視頻演練
- Associations and Correlations
- 自動生產(chǎn)線的拆裝與調(diào)試
- Windows 7寶典
- Splunk Operational Intelligence Cookbook
- 新編計算機組裝與維修
- Red Hat Linux 9實務自學手冊
- 在實戰(zhàn)中成長:Windows Forms開發(fā)之路
- 統(tǒng)計挖掘與機器學習:大數(shù)據(jù)預測建模和分析技術(原書第3版)
- Cloudera Hadoop大數(shù)據(jù)平臺實戰(zhàn)指南
- 玩轉PowerPoint
- Kibana 7 Quick Start Guide
- 瘋狂Java實戰(zhàn)演義