- Machine Learning with scikit:learn Quick Start Guide
- Kevin Jolly
- 99字
- 2021-06-24 18:15:56
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