Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi , can you please assist me with my Artifical Intelligent homework.we suppose to write a c++ or java codes Experiment 3 Recognizing Handwritten Digits

Hi , can you please assist me with my Artifical Intelligent homework.we suppose to write a c++ or java codes
image text in transcribed
image text in transcribed
Experiment 3 Recognizing Handwritten Digits Using KNN Objective The shapes of the same digit (0,1 9) can be distinct even when they are written by the same person. Hence a good recognition of handwritten digits is not easy. To recognize digits in the MINIST dataset, you are required to implement the KNN classifier to assign each digits in the testing data a label for the estimation of its true value. Methodology The MINIST dataset is split into two parts, one part (trData shrinked.txt) s for training and the other (tsData shrinked.txt) is for testing, see Fig. 1 for a screen shot of tsData shrinked.txt. The appended shrinked" within the data name indicates that the provided data are only subsets of the original MNIST data to reduce the processing time. KNN predicts each testing example a label in (0,1 by considering the labels of its K-nearest neighbor. In a nutshell, KNN finds each testing example K-nearest neighbors in training examples, and then use voting (that is, checking which class dominates the K-nearest neighbors to predict the label. To find the K-nearest neighbors, one can use Euclidean distance (or any other distance metric available). Since the value of K is very important to get a promising recognition accuracy, one typically performs n-folds cross validation to obtain the "best" K. However, for this experiment it is not compulsory to implement cross validation. Rather you can try several of different K values (e.g KE 7) and report the one that delivers the best (1,3,5,7 performance

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago