官术网_书友最值得收藏!

  • Deep Learning with Keras
  • Antonio Gulli Sujit Pal
  • 210字
  • 2021-07-02 23:58:03

A real example — recognizing handwritten digits

In this section, we will build a network that can recognize handwritten numbers. For achieving this goal, we use MNIST (for more information, refer to http://yann.lecun.com/exdb/mnist/), a database of handwritten digits made up of a training set of 60,000 examples and a test set of 10,000 examples. The training examples are annotated by humans with the correct answer. For instance, if the handwritten digit is the number three, then three is simply the label associated with that example.

In machine learning, when a dataset with correct answers is available, we say that we can perform a form of supervised learning. In this case, we can use training examples for tuning up our net. Testing examples also have the correct answer associated with each digit. In this case, however, the idea is to pretend that the label is unknown, let the network do the prediction, and then later on, reconsider the label to evaluate how well our neural network has learned to recognize digits. So, not unsurprisingly, testing examples are just used to test our net.

Each MNIST image is in gray scale, and it consists of 28 x 28 pixels. A subset of these numbers is represented in the following diagram:

主站蜘蛛池模板: 江孜县| 万全县| 徐闻县| 开平市| 旺苍县| 鄂州市| 社旗县| 新绛县| 都昌县| 广州市| 灵宝市| 云浮市| 乡宁县| 六盘水市| 平江县| 北海市| 班戈县| 利津县| 无极县| 康平县| 江油市| 河东区| 海丰县| 上思县| 施甸县| 襄垣县| 项城市| 汤原县| 海口市| 岑溪市| 乌兰察布市| 汉阴县| 塔河县| 芦溪县| 仁布县| 平谷区| 五寨县| 兴国县| 当雄县| 阳城县| 巴林右旗|