October 2018
Intermediate to advanced
472 pages
10h 57m
English
In this module, we have the joint_coordinates() and training() functions, as well as the calls to train and test the VGG16 model:
"""This module imports other modules to train the vgg16 model."""from __future__ import print_functionfrom crop_resize_transform import model_datafrom test import testimport matplotlib.pyplot as pltimport randomfrom scipy.io import loadmatimport numpy as npimport pandas as pdimport cv2 as cvimport globfrom sklearn.model_selection import train_test_splitfrom keras.models import Modelfrom keras.optimizers import Adamfrom keras.layers import Flatten, Dense, Dropoutfrom keras import backend as Kfrom keras import applicationsK.clear_session()# set seed for reproducibilityseed_val = 9000np.random.seed(seed_val) ...