Subdividing the Subsurface Based on Well Log Measurements
k-Nearest Neighbors (kNN) is a popular non-parametric supervised machine learning algorithm that can be applied to both classification and regression-based problems. It is easy to implement in Python and easy to understand which makes it a great algorithm to start learning about when you start your machine-learning journey.
Within this article, we will cover how the kNN algorithm works and how to apply it to well log data using Python’s Scikit-Learn library.
How does the kNN Algorithm Work?
Classifying data is one of the main applications of machine learning. As a result, there are numerous algorithms available. The kNN algorithm is just one of these.
The idea behind kNN is pretty simple. Points that are near each other are assumed to be similar.
When a new data point is introduced to a trained dataset the following steps occur
Determine a value for k — the number of points to be used to classify new d…

