You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
255 B

  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. from random import randint
  4. dataset = np.load('dataset.npy')
  5. n = randint(0, len(dataset))
  6. plt.plot(111)
  7. plt.axis('off')
  8. plt.imshow(dataset[n][0])
  9. plt.title('class: ' + str(dataset[n][1]))
  10. plt.show()