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

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
主站蜘蛛池模板: 白城市| 永顺县| 城固县| 武义县| 阜南县| 嘉荫县| 平谷区| 拜城县| 肇庆市| 峨边| 巴彦县| 大新县| 武城县| 大邑县| 阿巴嘎旗| 遂平县| 延庆县| 锡林浩特市| 弥勒县| 永宁县| 曲靖市| 汪清县| 青阳县| 都匀市| 三门县| 剑川县| 宜川县| 湄潭县| 海兴县| 巴楚县| 西盟| 如东县| 项城市| 九寨沟县| 太谷县| 吉木乃县| 壤塘县| 康定县| 汝阳县| 许昌市| 古交市|