Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

  Apply Now

Project- Predicting Noisy Images using KNN Classifier

6 / 10

Predicting Noisy Images - Shuffle the Data

In this step we will shuffle the training data.

INSTRUCTIONS
  1. We define the random seed:

    np.random.seed(42)
    
  2. Now we shuffle the training data:

    shuffle_index = np.random.permutation(60000)
    X_train, y_train = X_train[shuffle_index], << your code goes here >>[shuffle_index]
    
See Answer

No hints are availble for this assesment


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

Loading comments...