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

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
主站蜘蛛池模板: 连城县| 花莲县| 铅山县| 合肥市| 阳春市| 卓尼县| 宁晋县| 无棣县| 连平县| 慈利县| 马关县| 宜良县| 临泽县| 普安县| 宝丰县| 松江区| 大港区| 台安县| 文化| 横山县| 晋宁县| 明光市| 通州区| 新宁县| 县级市| 酒泉市| 金山区| 文昌市| 金湖县| 丹巴县| 昔阳县| 遂溪县| 平罗县| 扬州市| 蒙山县| 正镶白旗| 巫山县| 彭水| 师宗县| 托里县| 左权县|