开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

PZmomo · 2024年04月30日

为什么k=5?

NO.PZ2023040502000060

问题如下:

To build the training set with 50 defined features, 300 randomly selected working-age clients will be asked a set of open-ended questions by Lucia Fernandez, a market researcher. The resulting answers will include demographic data, information about risk preferences, and other retirement details. A Jubilación analyst will assign each individual in the sample to one of the five portfolios. Martin initially plans to perform machine learning analysis and use the model to assign new clients to the appropriate portfolio based on their responses to the questions.

If Martin were to use a k-nearest neighbor model, the value for k would be closest to:

选项:

A.

5

B.

50

C.

300

解释:

A is correct. Martin wants to classify clients into five different clusters (five strategic investment portfolios), according to the retirement portfolio that is most suitable for their needs.

B is incorrect. 50 is the number of features in the dataset for each interview conducted. These features will be used in the classification process to determine which portfolio is most suitable.

C is incorrect. 300 is the number of interviews conducted, not the number of clusters into which these 300 observations will be sorted.

k不应该是一个超参数,是指定的吗?

2 个答案

品职助教_七七 · 2024年05月03日

嗨,努力学习的PZer你好:


就是跟最近的五个portfolio去对比,看和哪些像,然后据此分类。

----------------------------------------------
就算太阳没有迎着我们而来,我们正在朝着它而去,加油!

品职助教_七七 · 2024年05月01日

嗨,从没放弃的小努力你好:


k=5就是题干指定的超参数,根据“will assign each individual in the sample to one of the five portfolios”得出。

----------------------------------------------
加油吧,让我们一起遇见更好的自己!

PZmomo · 2024年05月02日

“will assign each individual in the sample to one of the five portfolios”这句话是什么意思?knn不是指取距离最近的k个数然后进行分类吗?

  • 2

    回答
  • 0

    关注
  • 256

    浏览
相关问题