KNN Classifier In Artificial Learning
Import data set:
Creating Dependent and independent variables:
Initialize the algorithm:
Training and testing:
Fit
does training on Training Data (X_train, Y_Train)
Predict
does testing on Test data (X_test) and predicts outputs
Combining with predicted values with y values: