官术网_书友最值得收藏!

KNN pros

  • It's simple to implement if you are not going for optimized versions which use advanced data structures.
  • It's easy to understand and interpret. The algorithm is well studied theoretically, and much known about its mathematical properties in different settings.
  • You can plug in any distance metric. This allows working with complex objects, like time series, graphs, geographical coordinates, and basically anything you can define distance metric for.
  • Algorithms can be used for classification, ranking, regression (using neighbors average or weighted average), recommendations, and can even provide (a kind of) probabilistic output—what proportion of neighbors voted for this class.
  • It's easy to incorporate new data in the model or remove outdated data from it. This makes KNN a good choice for online learning (see Chapter 1Getting Started with Machine Learning) systems.
主站蜘蛛池模板: 绩溪县| 清丰县| 交口县| 军事| 静海县| 辰溪县| 抚顺县| 成都市| 伊通| 秦皇岛市| 遂昌县| 新丰县| 镇雄县| 中卫市| 合肥市| 巨野县| 上虞市| 芷江| 左权县| 襄樊市| 射洪县| 越西县| 个旧市| 榕江县| 绥江县| 南昌县| 靖宇县| 芜湖市| 滦南县| 武川县| 凤山县| 三门峡市| 昌吉市| 澎湖县| 喜德县| 伊春市| 玛沁县| 寻乌县| 罗江县| 扎鲁特旗| 达尔|