Master Machine Learning Concepts

Explore a binary classification problem using K-Nearest Neighbors (K-NN) with two real-valued features. Analyze training data visually and apply distance-based classification techniques to predict outcomes. From a Fall 2021 ML course assignment.

Alice Edwards
Contributor
4.0
51
5 months ago
Preview (2 of 5 Pages)
100%
Purchase to unlock

Page 1

Master Machine Learning Concepts - Page 1 preview image

Loading page image...

CS 178 Midterm ExamMachine Darning and Data Mining: Fall 202-1Wednesday' Novemter 6th, 2024Pleaseputyourname andIDon every page.Total time is Sil minutes. READ THE EXAM FIRST and organize your time; don't spendtoo long on any one problem.Pleasewrite clearly and showallyourwork.If you need clarification on a problem, please raise your hand and wait for the instructor orTA to come over.You may use one sheet containing handwritten notes for reference. and a (basic) calculator.T urn in your notes and any scratch pa]w:r with your exam .Problems1K-Nearest Neighborst15 points.)32Neural Networks,(15point#,)53Support Vector Machines,(15points,)74Naive Bayes Classifiersfl 5points,)1)

Page 2

Master Machine Learning Concepts - Page 2 preview image

Loading page image...

Problem 1K-Nearcst Ncighljors, (15points.)Fur a classification problem to predict binarypgiven two real-valnrdfeatures z ,, Xj,we ohairve training data {pictured atr i g h t ) :J ly1.00.5-12.00.5-12.02.5-13.01.514.0.1.012.04.51(1| On the data plot, sketch the decision lioiindary of a 1-nearest neigh lx>r classifier trained onthe data.(.? points.)(2) What is the training error rate of the resulting 1-neamst neighbor classifier? (Tn ease of anytics, we prefer to predict class + 1.)(-? pointsJIt1 Train Itnz(3) What is thn teone-onc-out eross-fjaJidstton errwr rate of a ]-nrarcst-ucighlxjr?f.? points.J41 LOOXV Hm(4) What is tlie trainitrg error rate of a 3-ncarcst neighbor classifier trained on these data?(,7pointe.)44 TrainEm(5) What is the the tearjc-onc-out cross mlidafion error rote of anearest naghbor classifiertrained un the data?(‘J pf/intx.)4a LOOXV Em
Preview Mode

This document has 5 pages. Sign in to access the full document!

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all