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

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.
主站蜘蛛池模板: 晴隆县| 江西省| 莱芜市| 通许县| 宾阳县| 中方县| 浮梁县| 渭源县| 武宣县| 德化县| 丹凤县| 平远县| 五原县| 青川县| 射阳县| 澄迈县| 渭源县| 石泉县| 上杭县| 剑川县| 壶关县| 萍乡市| 莱州市| 宁城县| 枣庄市| 邹平县| 客服| 陈巴尔虎旗| 东海县| 云南省| 鹿泉市| 瓦房店市| 平原县| 中方县| 永丰县| 高安市| 交城县| 定兴县| 内丘县| 本溪| 小金县|