题目
题目

BA 3551 (002 & 003) Exam 2

单项选择题

Assume you work for a large real estate company, and you are required to build a prediction model to predict the listing prices for houses that are being putting up for sale. You have an existing dataset with 5 houses and their prices, and you are trying to predict the listing price for house Z. You decide to train a k-NN model. Below, you have the normalized version of the data. HOUSE Number bedrooms Number bathrooms Patio PRICE A 1 1 1 $650,000 B 1 1 0 $610,000 C 0.5 0 1 $620,000 D 0 0.5 0 $550,000 E 0 0 0 $540,000 Z 0.5 1 1 ???   Additionally, you have the Euclidian distances between the existing houses and the new house, Z. A-Z 0.5 B-Z 1.12 C-Z 1 D-Z 1.52 E-Z 1.23   Assume you run a k-NN model. You set k = 4. What would be the price predicted for house Z?  

选项
A.$607,500
B.$605,000
C.$594,000
查看解析

查看解析

标准答案
Please login to view
思路分析
To solve this, we need to apply a k-NN prediction with k = 4 using the given normalized features and the prices of the five existing houses. First, identify the four closest neighbors to house Z by Euclidean distance. The distances are: A-Z = 0.5, B-Z = 1.12, C-Z = 1.00, D-Z = 1.52, E-Z = 1.23. Ordering from smallest to largest, the four nearest are A (0.5),......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!