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.
Import the KNeighborsClassifier
from scikit-learn
:
from sklearn.neighbors import << your code goes here >>
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.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Note - Having trouble with the assessment engine? Follow the steps listed here
Please login to comment
0 Comments
There are 5 new comments.