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

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.
主站蜘蛛池模板: 平塘县| 广德县| 翁源县| 贞丰县| 广东省| 会理县| 德阳市| 广宁县| 北流市| 宿松县| 沙雅县| 郧西县| 霍州市| 开化县| 昌吉市| 周口市| 神池县| 宜州市| 马公市| 通河县| 平邑县| 皮山县| 永嘉县| 西吉县| 巴彦县| 修水县| 衡山县| 晴隆县| 鞍山市| 永修县| 东乌珠穆沁旗| 安陆市| 麻城市| 沂南县| 宣城市| 蛟河市| 清水县| 中超| 巴楚县| 谢通门县| 安康市|