Project- Predicting Noisy Images using KNN Classifier

9 / 10

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.

INSTRUCTIONS
  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.

See Answer

No hints are availble for this assesment


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

Loading comments...