This is a collaboration for KNN Classifier uisng 3 different distance measures in the Supervised Learning course in FCAI-CU.
- Load the iris data set, Set the names of columns according to the column definitions.
- Display the first 5 rows of the dataset.
- Split the data into
train
andtest
. - Plot 2 different scatter plots
sepal_width
vssepal_length
andpetal_width
vspetal_length
. - Implement the KNN Classifier from scratch using Different distance measures:
- Manhattan
- Euclidean
- Cosine Similarity
- Test the Model uisng the confusion metrics (F1 score, Precision, Accuracy, Recall).