This is AI related assignment, so you must know about AI concepts. I want you to answer every question in the Assignment.docx/pdf .Those files should answer any questions you may have. DO NOT COPY AND...

1 answer below »
This is AI related assignment, so you must know about AI concepts. I want you to answer every question in theAssignment.docx/pdf.Those files should answer any questions you may have. DO NOT COPY AND PASTE ANY ANSWERS FROM ONLINE!! You also must show your work on how you answered the questions! If you do not follow these guidelines, I will get a refund.
Answered 2 days AfterMay 09, 2022

Answer To: This is AI related assignment, so you must know about AI concepts. I want you to answer every...

Sandeep Kumar answered on May 11 2022
82 Votes
1. Machine learning (70 points)
a. kNN: You decide to use Nearest Neighbors to classify new creatures that a creature in a ga
me might encounter, based on his positions on a map. In the map, friendly creatures are marked with a square, and enemies are marked with monster icons as shown in Figure 4.
Figure 4: Machine learning problem
Figure 4 also shows two new creatures, marked with a question mark symbols and labeled A and B. Show how these will be classified using 1-nearest neighbors, 3-nearest-neighbors and 5-nearest-neighbors
    
    Creature A
    Creature B
    1-NN
    Enemy
    Enemy
    3-NN
    Enemy
    Friend
    5-NN
    Enemy
    Enemy
(YOU MUST SHOW ALL YOUR WORK TO RECEIVE PARTIAL)
1) For 1-NN we see a tie in classification for both creature A and creature B, since the distance of enemy is the same as distance of the friend (measured in Euclidian). Therefore we enact a tie-breaking policy to randomly choose the nearest neighbor
2) In 3-NN, the nearest neighbors for creature A are two enemies and one friend, so it’s classified as an enemy; for creature B, it’s classified as friend, because of having two friends and one enemy as nearest neighbors
3) In 5-NN, for both creature A and B the nearest neighbors are three enemies and two friends,...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here