Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB program is required. Problem 6 (18 pts). Load prob6 mat found in Files into your Matlab workspace. It contains a trained neural network, diginset,

image text in transcribed

MATLAB program is required.

Problem 6 (18 pts). Load prob6 mat found in Files into your Matlab workspace. It contains a trained neural network, diginset, two images (imgl and img2) and imdsValidation, which is an image data store. Digitnet outputs a digit (from 0 to 9 ) for a given image. Answer the following queitions: a. How many convolution layers there are in digitnat? b. What are digitnet's predictions for imgl and img2? For the remaining part, you need to modify the flle names in imdsValidation to match the fles on your computer. To do this, you need to download the DigitDataset folder used by Matab if you do not have it already on your computer. Locate the folder where your digit images are stored, let's say your images are stored in folder_gart1 DigitDataset... The following script can be used to modify the imdsValidation file names: myloider = 'C:Progran Filesh..nndatasetsl'; \% change to your folder nfile2val = numel(imdsValidation.Fles): for ii = 1:nfile2val; file_qz = imdsValidation.Files[ii); \% fle name on QZs computer beginpos = strfind(file_q2, 'DigitDataset): \% beginning position in string imdsValidation. Fles[i] = [myfolder, fle_qz(beginposend]): if rem(ii, 500)==0, ii, indsValidationfiles[i], end end The above script may take a few minutes to run. If you mess up in changing the files, you can reload prob6.mat. c. What is the overall accuracy of digitnet when it is used to classify the images in imdsValidation (i.e, total number of correct predictions divided by total number tried)? d. Display the confusion chart. Which digit is most accurately predicted? Which digit is least accurately predicted

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Distributed Relational Database Architecture Connectivity Guide

Authors: Teresa Hopper

4th Edition

0133983064, 978-0133983067

More Books

Students also viewed these Databases questions