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

Implementing the k-NN algorithm using scikit-learn

In the following section, we will implement the first version of the k-NN algorithm and assess its initial accuracy. When implementing machine learning algorithms using scikit-learn, it is always a good practice to implement algorithms without fine-tuning or optimizing any of the associated parameters first in order to evaluate how well it performs.

In the following section, you will learn how to do the following:

  • Split your data into training and test sets
  • Implement the first version of the algorithm on the data
  • Evaluate the accuracy of your model using a k-NN score
主站蜘蛛池模板: 民权县| 镇安县| 怀远县| 双辽市| 昭苏县| 英德市| 耒阳市| 全椒县| 英吉沙县| 乌苏市| 德化县| 清河县| 盐源县| 井研县| 鄂托克旗| 天水市| 四川省| 永康市| 聂荣县| 额济纳旗| 望奎县| 巫山县| 沙湾县| 长阳| 莆田市| 桑植县| 甘肃省| 武山县| 新河县| 新巴尔虎左旗| 延川县| 大厂| 正定县| 南开区| 临西县| 龙井市| 兰考县| 巨野县| 武平县| 长泰县| 军事|