#NoPayJan Offer - Access all CloudxLab Courses for free between 1st to 31st Jan

  Enroll Now >>

Predicting Noisy Images - Train a KNN Classifier

In this step, we will train a KNN Classifier on the noisy images so that it can predict the non-noisy image from the same.

  1. Import the KNeighborsClassifier from scikit-learn:

    from sklearn.neighbors import << your code goes here >>
  2. Train the KNeighborsClassifier:

    knn_clf = KNeighborsClassifier()
    << your code goes here >>.fit(X_train_mod, y_train_mod)

    As mentioned earlier, here we are training the model on the noisy image and their corresponding original images as labels so that it can predict the original image from it's noisy version.

No hints are availble for this assesment

Answer is not availble for this assesment

Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...