February 2020
Intermediate to advanced
328 pages
8h 19m
English
We will start by importing the keras library into our environment:
library(keras)
In this example, we will work with a subset of the Dogs versus Cats dataset from Kaggle (https://www.kaggle.com/c/dogs-vs-cats), which contains images of dogs and cats in different sizes. This dataset was developed as a partnership between Petfinder and Microsoft. We have divided our data into train, test, and validation sets, each containing images of cats and dogs in their respective folders. Our train and test data has 1,000 pictures of cats and dogs each, and the test and validation set has 500 images each of dogs and cats.
Let's define the train, test, and validation paths of our data:
train_path <- "dogs_cats_small/train/" ...Read now
Unlock full access