Introduction
  • Installing Jupyter
  • How to download Python files
Course Contents
  • Import datasets
  • Import train_test_split function
  • Import KNeighborsClassifier
  • Import accuracy_score function
  • Import matplotlib.pyplot
  • Get iris data
  • Split data
  • create an instance of the `KNeighborsClassifier` class
  • training a k-nearest neighbors classifier
  • make predictions on the test set
  • By comparing the predicted labels to the true labels and calculating the accurac
  • Create a scatter plot