February 2020
Intermediate to advanced
328 pages
8h 19m
English
In this recipe, we will use a subset of the Flowers Recognition dataset, which is credited to Alexsandr Mamaev. The subset of data that we'll be using in this example contains around 2,500 images of three types of flowers – sunflower, dandelion, and daisy. Each class consists of about 800 photos. The data can be downloaded from Kaggle at https://www.kaggle.com/alxmamaev/flowers-recognition.
Let's start by loading the required libraries:
library(keras)library(reticulate)library(abind)library(grid)
Now, we can load the data into the R environment. We will leverage the flow_images_from_directory() function from keras to load the data. The data is present in a folder named flowers, which contains subfolders, each belonging ...
Read now
Unlock full access