rFathi03 / KNNClassifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KNNClassifier

This is a collaboration for KNN Classifier uisng 3 different distance measures in the Supervised Learning course in FCAI-CU.

Authors

Assignment Requirments

  • 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 and test.
  • Plot 2 different scatter plots sepal_width vs sepal_length and petal_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).

About


Languages

Language:Jupyter Notebook 100.0%