Skip to Main Content
Practical Convolutional Neural Networks
book

Practical Convolutional Neural Networks

by Mohit Sewak, Md. Rezaul Karim, Pradeep Pujari
February 2018
Intermediate to advanced content levelIntermediate to advanced
218 pages
5h 31m
English
Packt Publishing
Content preview from Practical Convolutional Neural Networks

Step 8 – Model evaluation

We have managed to finish the training. It is time to evaluate the model. Before, we start evaluating the model, let's implement some auxiliary functions for plotting the example errors and printing the validation accuracy. The plot_example_errors() takes two parameters. The first is cls_pred, which is an array of the predicted class-number for all images in the test set.

The second parameter, correct, is a boolean array to predict whether the predicted class is equal to true class for each image in the test set. At first, it gets the images from the test set that have been incorrectly classified. Then it gets the predicted and the true classes for those images, and finally it plots the first nine images with their ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Convolutional Neural Networks (CNNs)

Understanding Convolutional Neural Networks (CNNs)

Nell Watson
Practical Machine Learning for Computer Vision

Practical Machine Learning for Computer Vision

Valliappa Lakshmanan, Martin Görner, Ryan Gillard

Publisher Resources

ISBN: 9781788392303Supplemental Content