Model Training Using Unscaled Data
Explore the process of training a K-Nearest Neighbors model using unscaled features. Learn to separate data, create a training set, fit the model with an initial neighbor value, and evaluate its performance with confusion matrix and classification metrics. Understand the impact of unscaled data on model accuracy and prepare for optimizing parameters.
We'll cover the following...
We'll cover the following...
Let's move on and separate the features and the target in (X, y) and then split the data into the train (X_train, y_train) and test (X_test, y_test) using train_test_split().
Since we have our data ready, let's train a model.
Model training on unscaled data
Our focus is to develop a model that can predict the class in the Result column for any new data point. For the KNN algorithm, the