{"id":16384,"date":"2022-06-22T17:14:13","date_gmt":"2022-06-22T17:14:13","guid":{"rendered":"https:\/\/blog.datumo.com\/en\/?p=16384"},"modified":"2024-10-22T08:55:33","modified_gmt":"2024-10-22T08:55:33","slug":"try-out-simple-image-classification-at-home","status":"publish","type":"post","link":"https:\/\/blog.datumo.com\/en\/tech\/16384","title":{"rendered":"Try Out Simple Image Classification(at home!!)"},"content":{"rendered":"<p>[vc_row pix_particles_check=&#8221;&#8221;][vc_column][vc_raw_html]JTNDbWV0YSUyMGh0dHAtZXF1aXYlM0QlMjJyZWZyZXNoJTIyJTIwY29udGVudCUzRCUyMjAlM0IlMjB1cmwlM0RodHRwcyUzQSUyRiUyRmRhdHVtby5jb20lMkZlbiUyRnRyeS1vdXQtc2ltcGxlLWltYWdlLWNsYXNzaWZpY2F0aW9uLWF0LWhvbWUlMkYlMjIlM0U=[\/vc_raw_html]<div id=\"el1646799961152-e3ee06c0-4e82\" class=\"w-100 d-block \"><\/div><div class=\"pix-content-box card      vc_custom_1654577545529 custom-responsive-194242705   rounded-lg bg- w-100  \"   ><div class=\"\" style=\"z-index:30;position:relative;\">[vc_column_text]<\/p>\n<p style=\"text-align: left;\"><span style=\"font-size: 14pt;\"><strong>\ud83d\udd11<\/strong> <strong>In 9 minutes you will learn:<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>The definition and process of image classification<\/li>\n<li>The definition and usage of MNIST dataset<\/li>\n<li>Ways to improve accuracy of image classification<\/li>\n<\/ul>\n<p>&nbsp;[\/vc_column_text]<\/div><\/div>[\/vc_column][\/vc_row][vc_row pix_particles_check=&#8221;&#8221;][vc_column]<div id=\"el1650294698986-a1b962b5-ef42\" class=\"w-100 d-block \"><\/div>[vc_column_text css=&#8221;.vc_custom_1655918276819{padding-top: 40px !important;padding-right: 20px !important;padding-bottom: 40px !important;padding-left: 20px !important;}&#8221;]Image classification, in general, is the process of finding patterns in images based on contextual information contained within the images. Based on that information or features, the model learns to recognize what an image represents in general. One such example is of Handwritten Digit Recognition. Most of the time, it is relatively easy for a human being to understand what someone else has written, but the same does not hold for a machine. A machine needs to \u2018<strong class=\"bn ml\"><em class=\"sf\">learn<\/em><\/strong>\u2019 what information is contained in an image of a handwritten text so that it can later identify that text. This identification in images is made based on the pixel values. For handwritten digit classification, the first significant source of data that comes to mind is the MNIST dataset, as it is the most popular dataset for this domain. So without further ado, let\u2019s learn how to implement handwritten digit classification and also discover ways in which the accuracy of the classification can be improved![\/vc_column_text][\/vc_column][\/vc_row][vc_section full_width=&#8221;stretch_row&#8221; pix_over_visibility=&#8221;&#8221; css=&#8221;.vc_custom_1650444445523{padding-top: 80px !important;padding-bottom: 80px !important;background-color: #f8f9fa !important;}&#8221; el_id=&#8221;pix_section_program&#8221;][vc_row full_width=&#8221;stretch_row&#8221; pix_particles_check=&#8221;&#8221;][vc_column content_align=&#8221;text-center&#8221; offset=&#8221;vc_col-lg-offset-0 vc_col-lg-12 vc_col-md-offset-1 vc_col-md-10&#8243;]<div id=\"el1650442503491-f5da6b2f-fa35\" class=\"mb-3 text-left \"><h2 class=\"mb-32 pix-sliding-headline font-weight-bold secondary-font\" data-class=\"secondary-font text-heading-default\" data-style=\"\">About MNIST dataset<\/h2><\/div>[vc_column_text css=&#8221;.vc_custom_1655918751170{padding-top: 40px !important;padding-bottom: 40px !important;}&#8221;]<\/p>\n<p id=\"fc44\" class=\"pw-post-body-paragraph xt xu wo bn b xv xw hk xx xy xz ho ya yb yc yd ye yf yg yh yi yj yk yl ym yn jn iz\" style=\"text-align: left;\" data-selectable-paragraph=\"\">Modified National Institute of Standards and Technology, known as MNIST in short, is a dataset containing handwritten images of digits from 0 to 9 (made by the guru, Professor\u00a0<a class=\"au mn\" href=\"http:\/\/yann.lecun.com\/\" target=\"_blank\" rel=\"noopener ugc nofollow\"><em class=\"sf\">Yann LeCun<\/em><\/a>, and his colleagues). To be more precise, the dataset contains a total of 70,000 square, grayscale images of dimensions 28 x 28 pixels each. Each image comprises 784 features, and each feature corresponds to a pixel\u2019s intensity, which is from 0 to 255. Out of the total 70,000 images in the dataset, 60,000 are for training, and the remaining 10,000 images are for testing. The total number of classes is 10, signifying the output i.e., the digits from 0 to 9 inclusive.<\/p>\n<p data-selectable-paragraph=\"\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-16388\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/1-300x214.jpg\" alt=\"\" width=\"500\" height=\"357\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/1-300x214.jpg 300w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/1-768x549.jpg 768w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/1.jpg 1001w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><img decoding=\"async\" class=\"aligncenter wp-image-16389\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/2-300x214.png\" alt=\"\" width=\"500\" height=\"357\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/2-300x214.png 300w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/2-768x549.png 768w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/2.png 1001w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><img decoding=\"async\" class=\"aligncenter wp-image-16390\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/3-300x214.png\" alt=\"\" width=\"500\" height=\"357\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/3-300x214.png 300w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/3-768x549.png 768w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/3.png 1001w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/p>\n<p style=\"text-align: center;\" data-selectable-paragraph=\"\">THE MNIST database of handwritten digits<\/p>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][\/vc_section][vc_row pix_particles_check=&#8221;&#8221;][vc_column]<div id=\"el1650442607008-a85a832d-43f0\" class=\"w-100 d-block \"><\/div><div  class=\"pix-heading-el text-left \"><div><div class=\"slide-in-container\"><h2 class=\"text-heading-default font-weight-bold heading-text el-title_custom_color mb-12\" style=\"\" data-anim-type=\"\" data-anim-delay=\"0\">Prerequisites<\/h2><\/div><\/div><\/div>[vc_column_text css=&#8221;.vc_custom_1655918801284{padding-top: 40px !important;}&#8221;]Before you move ahead with this tutorial, you need to have basic programming knowledge in any language, preferably in Python 3, as well as some understanding of Machine Learning and Deep Learning concepts. Our code will be using\u00a0<a class=\"au mn\" href=\"https:\/\/colab.research.google.com\/notebooks\/intro.ipynb\" target=\"_blank\" rel=\"noopener ugc nofollow\">Google Colab<\/a>, but you can work on any code editor of your choice. We will be using Keras.[\/vc_column_text]<div id=\"el1650442651668-7359ff25-270a\" class=\"w-100 d-block \"><\/div><div id=\"el1650294913061-211813f5-5f2d\" class=\"w-100 d-block \"><\/div>[\/vc_column][\/vc_row][vc_section full_width=&#8221;stretch_row&#8221; pix_over_visibility=&#8221;&#8221; css=&#8221;.vc_custom_1650444445523{padding-top: 80px !important;padding-bottom: 80px !important;background-color: #f8f9fa !important;}&#8221;][vc_row full_width=&#8221;stretch_row&#8221; pix_particles_check=&#8221;&#8221;][vc_column content_align=&#8221;text-center&#8221; offset=&#8221;vc_col-lg-offset-0 vc_col-lg-12 vc_col-md-offset-1 vc_col-md-10&#8243;]<div  class=\"pix-heading-el text-left \"><div><div class=\"slide-in-container\"><h2 class=\"text-heading-default font-weight-bold heading-text el-title_custom_color mb-12\" style=\"\" data-anim-type=\"\" data-anim-delay=\"0\">Python Code for Handwritten Digit Classification<\/h2><\/div><\/div><\/div>[vc_column_text css=&#8221;.vc_custom_1655919126613{padding-top: 60px !important;padding-bottom: 30px !important;}&#8221;]<\/p>\n<h5 style=\"text-align: left;\"><strong>Step 1: Import essential libraries and packages<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import tensorflow\nimport tensorflow.keras\nfrom keras import models\nfrom keras import layers\nfrom keras.utils import normalize\nfrom keras.utils import to_categorical\nimport matplotlib.pyplot as plt<\/pre>\n<p>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1655919237412{border-top-width: 1px !important;padding-top: 60px !important;padding-bottom: 30px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<h5 id=\"751d\" class=\"pw-post-body-paragraph xt xu wo bn b xv yo hk xx xy yp ho ya yb yq yd ye yf yr yh yi yj ys yl ym yn jn iz\" style=\"text-align: left;\"><strong>Step 2: Load the MNIST dataset<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p id=\"3b86\" class=\"pw-post-body-paragraph xt xu wo bn b xv yo hk xx xy yp ho ya yb yq yd ye yf yr yh yi yj ys yl ym yn jn iz\" style=\"text-align: left;\" data-selectable-paragraph=\"\">Since the MNIST dataset is hugely popular, it can easily be easily accessed from different sources. Even\u00a0<a class=\"au mn\" href=\"https:\/\/www.tensorflow.org\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">TensorFlow<\/a>\u00a0and\u00a0<a class=\"au mn\" href=\"https:\/\/keras.io\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">Keras<\/a>\u00a0allow us to download it through their respective API directly. Thus, we will download it through Keras\u2019 API.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">mnist_dataset = tensorflow.keras.datasets.mnist\n# Split the data into training and test sets.\n(train_X, train_Y), (test_X, test_Y) = mnist_dataset.load_data()\n# train_X represents the pixel values (feautures) of the 28 x 28 image.\nprint(train_X[3])\nplt.imshow(train_X[3],cmap=plt.cm.binary)\nplt.show()<\/pre>\n<p>&nbsp;<\/p>\n<h5 style=\"text-align: left;\"><strong>Output:<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16391 size-large\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o1-500x1024.jpg\" alt=\"\" width=\"500\" height=\"1024\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o1-500x1024.jpg 500w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o1-147x300.jpg 147w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o1-768x1572.jpg 768w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o1-750x1536.jpg 750w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o1.jpg 938w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1655919280902{border-top-width: 1px !important;padding-top: 60px !important;padding-bottom: 30px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<h5 style=\"text-align: left;\"><strong>Step 3: Build the Model<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">We have decided to go for a 4-layered model i.e., having two hidden layers and an input and output layer. The rectifier activation function is chosen for the neurons in the hidden layers.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># 4-layered model\nmodel = models.Sequential()\n# Hidden layer containing 512 units. Rectifier linear function is used as the activation function. \nmodel.add(layers.Dense(512, activation='relu', input_shape=(28 * 28, )))\nmodel.add(layers.Dense(128, activation=tensorflow.nn.relu))\n# Dropout is a regularization technique that is used to reduce overfitting.\nmodel.add(layers.Dropout(0.2))\n# Output layer which is 10-way softmax layer, which returns an array of 10 probability scores displaying the probabability of image of the digit belonging to which of the 10 classes.\nmodel.add(layers.Dense(10, activation='softmax'))<\/pre>\n<p>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1655919448439{border-top-width: 1px !important;padding-top: 60px !important;padding-bottom: 30px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<h5 style=\"text-align: left;\"><strong>Step 4: Normalize the data i.e., change the current data range from 0 to 255 to 0 and 1 inclusive.<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">It is considered a good practice to scale input values when it comes to neural networks. Thus we will normalize our data.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">train_X = normalize(train_X, axis=1)\ntest_X = normalize(test_X, axis=1)\nprint(train_X[3])\nprint(\" \")\nprint('Shape of train_X: ', train_X.shape)\nprint('Number of images in train_x: ', train_X.shape[0])\nprint('Number of images in test_X: ', test_X.shape[0])<\/pre>\n<p>&nbsp;<\/p>\n<h5 style=\"text-align: left;\"><strong>Output:<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16392 size-full\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o2.jpg\" alt=\"\" width=\"826\" height=\"1920\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o2.jpg 826w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o2-129x300.jpg 129w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o2-441x1024.jpg 441w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o2-768x1785.jpg 768w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o2-661x1536.jpg 661w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1655919542695{border-top-width: 1px !important;padding-top: 60px !important;padding-bottom: 30px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<h5 style=\"text-align: left;\"><strong>Step 5: Flatten each 28 x 28 image to 1 x 784 image<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">The training dataset is structured to be a 3-dimensional array. To be able to use the dataset in Keras API, we need 4-dimensional NumPy arrays. Therefore, we need to flatten or reduce the images so that they represent a vector of pixels. In this case, since the image is 28 x 28, there will be 784-pixel values.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">train_X = train_X.reshape(train_X.shape[0], -1)\ntest_X= test_X.reshape(test_X.shape[0], -1)\n# Encode labels\ntrain_Y = to_categorical(train_Y)\ntest_Y  = to_categorical(test_Y)\nprint('Shape of train_X: ', train_X.shape)\nprint('Number of images in train_x: ', train_X.shape[0])\nprint('Number of images in test_X: ', test_X.shape[0])<\/pre>\n<p>&nbsp;<\/p>\n<h5 style=\"text-align: left;\"><strong>Output:<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16393\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/0_EtE8XFkbzspzri4O.png\" alt=\"\" width=\"602\" height=\"118\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/0_EtE8XFkbzspzri4O.png 602w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/0_EtE8XFkbzspzri4O-300x59.png 300w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/0_EtE8XFkbzspzri4O-600x118.png 600w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1655919624093{border-top-width: 1px !important;padding-top: 60px !important;padding-bottom: 30px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<h5 style=\"text-align: left;\"><strong>Step 6: Train the model<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">We will now fit the model.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">model.fit(train_X, train_Y, epochs=7)<\/pre>\n<p>&nbsp;<\/p>\n<h5 style=\"text-align: left;\"><strong>Output:<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-16394 size-large\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o3-1024x350.png\" alt=\"\" width=\"640\" height=\"219\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o3-1024x350.png 1024w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o3-300x103.png 300w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o3-768x263.png 768w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/o3.png 1400w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/>[\/vc_column_text][vc_column_text css=&#8221;.vc_custom_1655919748449{border-top-width: 1px !important;padding-top: 60px !important;padding-bottom: 30px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<p style=\"text-align: left;\"><strong>Step 7: Evaluate the model accuracy on test data<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p id=\"d64a\" class=\"pw-post-body-paragraph xt xu wo bn b xv yo hk xx xy yp ho ya yb yq yd ye yf yr yh yi yj ys yl ym yn jn iz\" style=\"text-align: left;\" data-selectable-paragraph=\"\">We will now evaluate the accuracy of the model.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">_, test_accuracy = model.evaluate(test_X, test_Y, verbose=0)\nprint(f\"\\nTest Accuracy : {test_accuracy * 100} %\")<\/pre>\n<p>&nbsp;<\/p>\n<h5 style=\"text-align: left;\"><strong>Output:<\/strong><\/h5>\n<p>&nbsp;<\/p>\n<p id=\"79ff\" class=\"pw-post-body-paragraph xt xu wo bn b xv yo hk xx xy yp ho ya yb yq yd ye yf yr yh yi yj ys yl ym yn jn iz\" style=\"text-align: left;\" data-selectable-paragraph=\"\">97.85% seems quite great? Isn\u2019t it? No, never satisfy! In the next section, we will discuss how to improve it even more!<\/p>\n<pre class=\"yu yv yw yx vj zi lq zj\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-16395\" src=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/04.png\" alt=\"\" width=\"620\" height=\"66\" srcset=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/04.png 620w, https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/04-300x32.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/pre>\n<p>[\/vc_column_text][\/vc_column][\/vc_row][\/vc_section][vc_row pix_particles_check=&#8221;&#8221;][vc_column]<div id=\"el1650362147064-486b7dc2-a9b3\" class=\"w-100 d-block \"><\/div><div id=\"el1650450433074-0be5e40e-928e\" class=\"w-100 d-block \"><\/div><div  class=\"pix-heading-el text-left \"><div><div class=\"slide-in-container\"><h2 class=\"text-heading-default font-weight-bold heading-text el-title_custom_color mb-12\" style=\"\" data-anim-type=\"\" data-anim-delay=\"0\">Improving Accuracy of Image Classification with MNIST<\/h2><\/div><\/div><\/div>[vc_column_text css=&#8221;.vc_custom_1655919778502{padding-top: 40px !important;padding-bottom: 0px !important;}&#8221;]<\/p>\n<p id=\"d74b\" class=\"pw-post-body-paragraph xt xu wo bn b xv xw hk xx xy xz ho ya yb yc yd ye yf yg yh yi yj yk yl ym yn jn iz\" style=\"text-align: left;\" data-selectable-paragraph=\"\">We say that the accuracy of our model is 97.85%. The question that arises is, can we still improve the accuracy? The answer, yes, we can! We can improve the accuracy of the image classification by altering our model as well as our dataset. For a start, we can increase the number of layers in our neural network. The added layers can enable a neural network to learn a more complex classification function that can possibly improve classification performance and accuracy. Changing and trying out different kernel sizes and activation functions can also lead to better results.<br \/>\nWhere the dataset itself is concerned, we can firstly expand our dataset, and this is the easiest solution. The sizes of images in the dataset can also tamper with i.e., increasing or decreasing their sizes according to need. Another fundamental way in which the image classification accuracy can significantly increase is by Data Augmentation. This is basically the practice of adding synthetic data to your dataset by flipping images, adding noise and other distortions, etc. One way is that we can shift each image by one pixel in all of the 4 directions (left, right, up, down) i.e. by [-1,0], [1,0], [0,1], [0, -1] respectively. We can also shift the images diagonally and include these shifted images in the dataset. In this way, not only will we have more data, but also more variation in that data, which can help to boost the accuracy of classification.[\/vc_column_text][\/vc_column][\/vc_row][vc_row pix_particles_check=&#8221;&#8221;][vc_column]<div id=\"el1653971463480-ce74a014-4ae9\" class=\"w-100 d-block \"><\/div>[vc_column_text css=&#8221;.vc_custom_1655919866370{padding-top: 40px !important;padding-bottom: 0px !important;}&#8221;]<\/p>\n<p id=\"4190\" class=\"pw-post-body-paragraph xt xu wo bn b xv xw hk xx xy xz ho ya yb yc yd ye yf yg yh yi yj yk yl ym yn jn iz\" style=\"text-align: left;\" data-selectable-paragraph=\"\">Having various types of datasets like MNIST can be helpful for your personal studying, especially under current lock-down environment. However, datasets like MNIST is challenging to compose and are not accessible easily; because it is challenging not only to gather, but also to have it pre-processed just for your specific needs.<\/p>\n<p data-selectable-paragraph=\"\"><strong><a class=\"au mn\" href=\"https:\/\/www.datumo.com\" target=\"_blank\" rel=\"noopener ugc nofollow\"><em class=\"pn\">D<\/em><\/a><\/strong><a href=\"https:\/\/www.datumo.com\"><strong>ATUMO<\/strong><\/a> has been working with big firms to establish such open datasets, like <a class=\"au mn\" href=\"https:\/\/korquad.github.io\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">KorQuAD\u00a0<\/a>sets (The Korean Question Answering Dataset). Here, we crowdsource our tasks to diverse users located globally to ensure the quality and quantity on time. Moreover, our in-house managers double-check the quality of the collected or processed data. Let it be your professional dataset or academic dataset!<\/p>\n<article>\n<div class=\"l\">\n<div class=\"l\">\n<section>\n<div class=\"jn mo wk wl wm\">\n<p id=\"9c19\" class=\"pw-post-body-paragraph xt xu wo bn b xv yo hk xx xy yp ho ya yb yq yd ye yf yr yh yi yj ys yl ym yn jn iz\" data-selectable-paragraph=\"\">Just focus on your works. <strong class=\"bn ml\"><em class=\"sf\">DATUMO<\/em><\/strong> got your back!<\/p>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<\/article>\n<p>[\/vc_column_text]<div id=\"el1653972293756-76a5ecd1-3d25\" class=\"w-100 d-block \"><\/div>[vc_column_text css=&#8221;.vc_custom_1655919804709{border-top-width: 1px !important;padding-top: 80px !important;padding-bottom: 0px !important;border-top-color: rgba(0,0,0,0.2) !important;border-top-style: solid !important;}&#8221;]<\/p>\n<p style=\"text-align: left;\">To sum it all up, we started off by discussing what image classification in general is and how it is carried out by a model i.e., based on the pixel values in an image. We also talked about the very popular MNIST dataset, which is basically a dataset of handwritten digits and is used commonly in the handwritten digit classification problem. We thoroughly discussed the details and particulars of this dataset and went through each step of handwritten digit classification in Python. Lastly, we talked about how we can improve the test accuracy by introducing some changes in the model as well as in the dataset, for example, by creating an augmented dataset.<\/p>\n<p>[\/vc_column_text]<div id=\"el1653971463481-f4f34d7c-39ce\" class=\"w-100 d-block \"><\/div>[\/vc_column][\/vc_row][vc_row pix_particles_check=&#8221;&#8221;][vc_column width=&#8221;1\/2&#8243;]<div id=\"el1646794934167-c0c94dd3-ea74\" class=\"w-100 d-block \"><\/div><div class=\" mb-3 mb-md-0 \"  ><div class=\"card w-100 h-100 bg-white  vc_custom_1652982865548  pix-hover-item rounded-10 position-relative overflow-hidden2 text-white tilt fancy_card\" ><div class=\"card-img-overlay overflow-visible d-inline-block w-100 pix-img-overlay pix-p-30 d-flex align-items-end text-left\"><div class=\"w-100 \"><h3 class=\"card-title  text-black font-weight-bold mb-0 animate-in\" style=\"\">See what we can do for you.<\/h3><p class=\"card-text pix-pt-10 text-black \" style=\"\">Build smarter AI with us.<\/p><div class=\"card-btn-div mt-4 d-inline-block w-100\"><a  href=\"https:\/\/datumo.com\" class=\"btn mb-2     text-white btn-black d-inline-block      btn-md\" target=\"_blank\" rel=\"noopener\"    ><span class=\"font-weight-bold \" >Learn More<\/span><\/a><\/div><\/div><\/div><\/div><\/div>[\/vc_column][vc_column width=&#8221;1\/2&#8243;]<div id=\"el1646794982519-9a19190b-7fde\" class=\"w-100 d-block \"><\/div><div class=\" mb-3 mb-md-0 \"  ><div class=\"card w-100 h-100 bg-black  vc_custom_1653971438710  pix-hover-item rounded-10 position-relative overflow-hidden2 text-white tilt fancy_card\" ><div class=\"card-img-overlay overflow-visible d-inline-block w-100 pix-img-overlay pix-p-30 d-flex align-items-end text-left\"><div class=\"w-100 \"><h3 class=\"card-title  text-white font-weight-bold mb-0 animate-in\" style=\"\">We would like to support the AI industry by sharing.<\/h3><p class=\"card-text pix-pt-10 text-white \" style=\"\"><\/p><div class=\"card-btn-div mt-4 d-inline-block w-100\"><a  href=\"https:\/\/open.datumo.com\/en\" class=\"btn mb-2    vc_custom_1653971438714  btn-primary d-inline-block      btn-md\" target=\"_blank\" rel=\"noopener\"    ><span class=\"font-weight-bold \" >Download Open Datasets<\/span><\/a><\/div><\/div><\/div><\/div><\/div>[\/vc_column][\/vc_row][vc_row pix_particles_check=&#8221;&#8221;][vc_column]<div id=\"el1646799961152-e3ee06c0-4e82\" class=\"w-100 d-block \"><\/div>[\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"[vc_row pix_particles_check=&#8221;&#8221;][vc_column][vc_raw_html]JTNDbWV0YSUyMGh0dHAtZXF1aXYlM0QlMjJyZWZyZXNoJTIyJTIwY29udGVudCUzRCUyMjAlM0IlMjB1cmwlM0RodHRwcyUzQSUyRiUyRmRhdHVtby5jb20lMkZlbiUyRnRyeS1vdXQtc2ltcGxlLWltYWdlLWNsYXNzaWZpY2F0aW9uLWF0LWhvbWUlMkYlMjIlM0U=[\/vc_raw_html][\/vc_column][\/vc_row][vc_row pix_particles_check=&#8221;&#8221;][vc_column][vc_column_text css=&#8221;.vc_custom_1655918276819{padding-top: 40px !important;padding-right: 20px !important;padding-bottom: 40px !important;padding-left: 20px !important;}&#8221;]Image classification, in general, is the process of finding patterns in images based on contextual information contained within the images. Based on that information or features, the model learns&#8230;","protected":false},"author":1,"featured_media":16485,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[131],"tags":[127,181,184,199],"class_list":["post-16384","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-datumo","tag-image-classification","tag-mnist","tag-python-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Try Out Simple Image Classification(at home!!) - DATUMO<\/title>\n<meta name=\"description\" content=\"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.datumo.com\/en\/tech\/16384\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Try Out Simple Image Classification (at home!!)\" \/>\n<meta property=\"og:description\" content=\"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.datumo.com\/en\/tech\/16384\" \/>\n<meta property=\"og:site_name\" content=\"DATUMO\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-22T17:14:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-22T08:55:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1920\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DATUMO\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Try Out Simple Image Classification (at home!!)\" \/>\n<meta name=\"twitter:description\" content=\"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"DATUMO\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384\"},\"author\":{\"name\":\"DATUMO\",\"@id\":\"https:\/\/blog.datumo.com\/#\/schema\/person\/02ec2d0ba953b146878dab089dc735b6\"},\"headline\":\"Try Out Simple Image Classification(at home!!)\",\"datePublished\":\"2022-06-22T17:14:13+00:00\",\"dateModified\":\"2024-10-22T08:55:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384\"},\"wordCount\":2115,\"publisher\":{\"@id\":\"https:\/\/blog.datumo.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg\",\"keywords\":[\"datumo\",\"image classification\",\"mnist\",\"python code\"],\"articleSection\":[\"tech\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384\",\"url\":\"https:\/\/blog.datumo.com\/en\/tech\/16384\",\"name\":\"Try Out Simple Image Classification(at home!!) - DATUMO\",\"isPartOf\":{\"@id\":\"https:\/\/blog.datumo.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg\",\"datePublished\":\"2022-06-22T17:14:13+00:00\",\"dateModified\":\"2024-10-22T08:55:33+00:00\",\"description\":\"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.datumo.com\/en\/tech\/16384\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage\",\"url\":\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg\",\"contentUrl\":\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg\",\"width\":1920,\"height\":1920},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.datumo.com\/en\/tech\/16384#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.datumo.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Try Out Simple Image Classification(at home!!)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.datumo.com\/#website\",\"url\":\"https:\/\/blog.datumo.com\/\",\"name\":\"DATUMO\",\"description\":\"The Data for Smarter AI\",\"publisher\":{\"@id\":\"https:\/\/blog.datumo.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.datumo.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/blog.datumo.com\/#organization\",\"name\":\"DATUMO\",\"url\":\"https:\/\/blog.datumo.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/blog.datumo.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/05\/2.1.webp\",\"contentUrl\":\"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/05\/2.1.webp\",\"width\":1080,\"height\":600,\"caption\":\"DATUMO\"},\"image\":{\"@id\":\"https:\/\/blog.datumo.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.datumo.com\/#\/schema\/person\/02ec2d0ba953b146878dab089dc735b6\",\"name\":\"DATUMO\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/blog.datumo.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1942a8a63e1c8fa0d9be56cda789edd6c0a866259cd5dca24952597ffa8bab3d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1942a8a63e1c8fa0d9be56cda789edd6c0a866259cd5dca24952597ffa8bab3d?s=96&d=mm&r=g\",\"caption\":\"DATUMO\"},\"description\":\"DATUMO, The Data for Smarter AI. We seek to drive impact in the world by providing diverse and high quality data to build smarter AI.\",\"sameAs\":[\"https:\/\/blog.datumo.com\/en\"],\"url\":\"https:\/\/blog.datumo.com\/en\/author\/selectstar\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Try Out Simple Image Classification(at home!!) - DATUMO","description":"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.datumo.com\/en\/tech\/16384","og_locale":"ko_KR","og_type":"article","og_title":"Try Out Simple Image Classification (at home!!)","og_description":"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!","og_url":"https:\/\/blog.datumo.com\/en\/tech\/16384","og_site_name":"DATUMO","article_published_time":"2022-06-22T17:14:13+00:00","article_modified_time":"2024-10-22T08:55:33+00:00","og_image":[{"width":1920,"height":1920,"url":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg","type":"image\/jpeg"}],"author":"DATUMO","twitter_card":"summary_large_image","twitter_title":"Try Out Simple Image Classification (at home!!)","twitter_description":"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!","twitter_image":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg","twitter_misc":{"\uae00\uc4f4\uc774":"DATUMO"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#article","isPartOf":{"@id":"https:\/\/blog.datumo.com\/en\/tech\/16384"},"author":{"name":"DATUMO","@id":"https:\/\/blog.datumo.com\/#\/schema\/person\/02ec2d0ba953b146878dab089dc735b6"},"headline":"Try Out Simple Image Classification(at home!!)","datePublished":"2022-06-22T17:14:13+00:00","dateModified":"2024-10-22T08:55:33+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.datumo.com\/en\/tech\/16384"},"wordCount":2115,"publisher":{"@id":"https:\/\/blog.datumo.com\/#organization"},"image":{"@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage"},"thumbnailUrl":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg","keywords":["datumo","image classification","mnist","python code"],"articleSection":["tech"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/blog.datumo.com\/en\/tech\/16384","url":"https:\/\/blog.datumo.com\/en\/tech\/16384","name":"Try Out Simple Image Classification(at home!!) - DATUMO","isPartOf":{"@id":"https:\/\/blog.datumo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage"},"image":{"@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage"},"thumbnailUrl":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg","datePublished":"2022-06-22T17:14:13+00:00","dateModified":"2024-10-22T08:55:33+00:00","description":"We will write a Python code to do so and will also discuss ways in which we can improve the classification accuracy!","breadcrumb":{"@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.datumo.com\/en\/tech\/16384"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#primaryimage","url":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg","contentUrl":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/06\/shubham-dhage-4u7VzDgNgLI-unsplash.jpg","width":1920,"height":1920},{"@type":"BreadcrumbList","@id":"https:\/\/blog.datumo.com\/en\/tech\/16384#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.datumo.com\/en\/"},{"@type":"ListItem","position":2,"name":"Try Out Simple Image Classification(at home!!)"}]},{"@type":"WebSite","@id":"https:\/\/blog.datumo.com\/#website","url":"https:\/\/blog.datumo.com\/","name":"DATUMO","description":"The Data for Smarter AI","publisher":{"@id":"https:\/\/blog.datumo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.datumo.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/blog.datumo.com\/#organization","name":"DATUMO","url":"https:\/\/blog.datumo.com\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/blog.datumo.com\/#\/schema\/logo\/image\/","url":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/05\/2.1.webp","contentUrl":"https:\/\/blog.datumo.com\/en\/wp-content\/uploads\/2022\/05\/2.1.webp","width":1080,"height":600,"caption":"DATUMO"},"image":{"@id":"https:\/\/blog.datumo.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/blog.datumo.com\/#\/schema\/person\/02ec2d0ba953b146878dab089dc735b6","name":"DATUMO","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/blog.datumo.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1942a8a63e1c8fa0d9be56cda789edd6c0a866259cd5dca24952597ffa8bab3d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1942a8a63e1c8fa0d9be56cda789edd6c0a866259cd5dca24952597ffa8bab3d?s=96&d=mm&r=g","caption":"DATUMO"},"description":"DATUMO, The Data for Smarter AI. We seek to drive impact in the world by providing diverse and high quality data to build smarter AI.","sameAs":["https:\/\/blog.datumo.com\/en"],"url":"https:\/\/blog.datumo.com\/en\/author\/selectstar"}]}},"_links":{"self":[{"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/posts\/16384","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/comments?post=16384"}],"version-history":[{"count":10,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/posts\/16384\/revisions"}],"predecessor-version":[{"id":16924,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/posts\/16384\/revisions\/16924"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/media\/16485"}],"wp:attachment":[{"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/media?parent=16384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/categories?post=16384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.datumo.com\/en\/wp-json\/wp\/v2\/tags?post=16384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}