Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q1. (15p) Recall the example that we have solved in the lecture to find the price of a house. We will do the same thing
Q1. (15p) Recall the example that we have solved in the lecture to find the price of a house. We will do the same thing here, in the exam. I have a dataset of 10 houses given in the following Each observation has size as its feature and the output is the price. For example the first house's size is 45m2 and its price is 96TL. I will use two models to make predictions. KNN with k=1 and KNN with k=2. We will use ordinary KNN, i.e., we will take arithmetic mean and use Euclidian distances. a. (5p) What is the price of a house with size 60m2 if we use a KNN model with k=2. b. (5p) What is the price of a house with size 60m2 if we use a KNN model with k=3. c. (5p) We want to see what happens to the model with the choice of k. Please plot the train error and the test error versus the value
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started