ML1.6 KNN

来源:互联网 发布:淘宝属于兴奋剂 编辑:程序博客网 时间:2024/06/05 23:01

this is a discriminative model,  model p(y|x_n+1), i.e we don't care about the prior on our predictive independent variable x_n+1, 认为它没有prior knowledge.


depending on the norm, find the k nearest neighbors, and determine y according to the majority voting of k labels.