Let's look at a more realistic case for using CNNs; we will use the Stanford Dogs versus Cats dataset. This dataset has 100+ images of dogs and cats.
- Import the relevant functions and Python classes:
import matplotlib.pyplot as plt import tensorflow as tf import pandas as pd import numpy as np from sklearn.metrics import confusion_matrix import time from datetime import timedelta import math import dataset import random
- We will define the parameters for the convolution layers. There are three convolution layers with the following parameters: ...